16.09.2012, 05:29
alguem ai tem um comando de (/trazer todos) para adm ?
CMD:trazertodos(playerid)
{
new Float:P_Trazer[3], rString[128], rNome[MAX_PLAYER_NAME];
GetPlayerName(playerid, rNome, MAX_PLAYER_NAME);
format(rString, sizeof(rString), "{7FFFD4} O Administrador {AFEEEE}%s {7FFFD4}Trouxe todos atй ele!", rNome);
SendClientMessageToAll(-1, rString);
GetPlayerPos(playerid,P_Trazer[0],P_Trazer[1],P_Trazer[2]);
for(new i; i < MAX_PLAYERS; ++i)
{
SetPlayerPos(i,P_Trazer[0],P_Trazer[1],P_Trazer[2]);
}
return 1;
}
pawn Код:
|
if(!strcmp(cmdtext, "/trazertodos", true))
{
if(!IsPlayerAdmin(playerid))
return SendClientMessage(playerid, -1, "Vocк nгo й ademir.");
static
Float:playX,
Float:playY,
Float:playZ,
pString[128],
pNome[24]
;
GetPlayerName(playerid, pNome, 24);
form(pString, sizeof(pString),"{7FFFD4} O Administrador {AFEEEE}%s {7FFFD4}Trouxe todos atй ele!", pNome);
GetPlayerPos(playerid, playX, playY, playZ);
for(new Interador, getPlayers = GetMaxPlayers(); getPlayers != e; ++Interador){
if(IsPlayerConnected(Interador)){
SetPlayerPos(Interador, playX, playY, playZ);
}
}
}
return 1;
}