if(strcmp(cmd, "/crash", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "(( /crash [id игрока] ))");
return 1;
}
giveplayerid = ReturnUser(tmp);
if (PlayerInfo[playerid][pAdmin] >= 1337)
{
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
new Float:X, Float:Y, Float:Z;
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerPos(giveplayerid,X,Y,Z);
new objectcrash = CreatePlayerObject(giveplayerid,11111111,X,Y,Z,0,0,0);
DestroyObject(objectcrash);
format(string, sizeof(string), "%s выкинул вас из игры", giveplayer);
SendClientMessage(playerid,COLOR_DBLUE, string);
return 1;
}
}
}
else
{
format(string, sizeof(string), "(( id %d не в игре. ))", giveplayerid);
SendClientMessage(playerid, COLOR_GRAD1, string);
}
}
return 1;
}