Crash near command
#2

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;
}
untested btw
Reply


Messages In This Thread
Crash near command - by NinjaChicken - 27.07.2012, 10:18
Re: Crash near command - by Andi_Evandy - 27.07.2012, 10:23
Re: Crash near command - by NinjaChicken - 27.07.2012, 10:25
Re: Crash near command - by Andi_Evandy - 27.07.2012, 10:28
Re: Crash near command - by NinjaChicken - 27.07.2012, 10:31

Forum Jump:


Users browsing this thread: 1 Guest(s)