15.02.2018, 10:57
PHP код:
CMD:respawnplayers(playerid, params[])
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);//get pos of the player doing the cmd
for(new i, j = GetPlayerPoolSize(); i <= j; i++)//loop through all players
{
if(IsPlayerInRangeOfPoint(i, 10.0, x, y, z) && i != playerid)//check if any player is in range of the player who did the command and that player is not the command issuer.
{
SpawnPlayer(i);//spawn him
//etc code

