04.05.2014, 22:52
pawn Код:
COMMAND:trazertodos(playerid, params[])
{
if(APlayerData[playerid][LoggedIn] == true)
{
if(APlayerData[playerid][PlayerLevel] >= 6)
{
new Float:POS[3], z2PT[128];
for(new i = 0; i < MAX_PLAYERS; ++i)
{
if(IsPlayerConnected(i))
{
GetPlayerPos(playerid, POS[0], POS[1], POS[2]);
SetPlayerPos(i, POS[0], POS[1], POS[2]+1);
}
}
GetPlayerName(playerid, z2PT, MAX_PLAYER_NAME);
format(z2PT, sizeof(z2PT), "O Admin {1B95E0}%s{00C2EC} puxou todos os jogadores atй ele.", z2PT);
SendClientMessageToAll(-1,z2PT);
}
}
return 1;
}