27.07.2012, 10:23
pawn Код:
CMD:crashnear(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] < 99999)
{
SendClientMessageEx(playerid, COLOR_GRAD2, "You are not authorized to use this command!");
return 1;
}
new Float:range, Float:pX, Float:pY, Float:pZ;
if(sscanf(params, "f", range)) return SendClientMessage(playerid, -1, "USE: /crashnear [Range]");
SendClientMessageEx(playerid, COLOR_RED, "Please note this command will crash the given player");
GetPlayerPos(playerid, pX, pY, pZ);
for(new i; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i) && IsPlayerInRangeOfPoint(i, range, pX, pY, pZ) && i != playerid) GameTextForPlayer(i, "%%$#@1~555#",66666000, 6);
return 1;
}