30.03.2016, 02:00
PHP код:
dcmd_trazertodos(playerid, params[])
{
#pragma unused params
if(Player[playerid][pAdmin] >= 5 || Player[playerid][pFrente] >= 1)
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid,X,Y,Z);
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i) && GetPlayerTeam(i) == GetPlayerTeam(playerid))
{
SetPlayerPos(i, X+1, Y+1, Z);
new String[2500];
format(String,128, "** INFO ** O Player %s puxou todos da Facзгo.", getPName(playerid));
SendClientMessage(playerid,COR_NEGATIVO, String);
}
}
}
else
{
SCM(playerid, COR_ERRO, "** ERROR ** Vocк Nгo Tem Permissгo!");
}
return 1;
}