23.03.2012, 16:52
to tele all players to the admin
EDIT
the status cmd looks fine
but could try making the string more neater, maybe puting the items line aftter line.
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;
}
the status cmd looks fine
but could try making the string more neater, maybe puting the items line aftter line.