19.04.2013, 00:02
So that the players don't get gathered on a single spot and get stuck:
pawn Код:
if(!strcmp("/getall", cmdtext, true))
{
new Float:x, Float:y, Float:z, Float:c=0.0;
GetPlayerPos(playerid, x, y, z);
for(new i=0; i<MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
SetPlayerPos(i,x+c,y+c,z);
c=c+0.4;
}
}
return 1;
}