Problem with this 2 cmds
#2

to tele all players to the admin
pawn Код:
CMD:info(playerid, params[])
{
    if (PlayerInfo[playerid][pAdmin] >= 1) return SendClientMessage(playerid, red, "Not Allowed to use this CMD");//change it
    new string[128];GetPlayerName(playerid, playrname, sizeof(playrname));
    format(string, sizeof(string), "Admin %s (%d) has teleported all players to his location.", playrname,playerid);
    SendClientMessageToAll(COLOR_YELLOW, string);
    new Float:X,Float:Y, Float:Z;
    GetPlayerPos(playerid,X,Y,Z);
    for(new i = 0; i <= MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i)) SetPlayerPos(i,X+2,Y,Z+2);
    }
    return 1;
}
EDIT
the status cmd looks fine
but could try making the string more neater, maybe puting the items line aftter line.
Reply


Messages In This Thread
Problem with this 2 cmds - by Face9000 - 23.03.2012, 16:48
Re: Problem with this 2 cmds - by park4bmx - 23.03.2012, 16:52
Re: Problem with this 2 cmds - by BigD - 23.03.2012, 16:53
Re: Problem with this 2 cmds - by Face9000 - 23.03.2012, 18:15

Forum Jump:


Users browsing this thread: 1 Guest(s)