Need Help Please :>
#1

hi all :>

i want know that how can i re-spwan all players when i use /spwanall cmd.

i mean pls help me to make this command
Reply
#2

I hope this is what you want.

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/spawnall", cmdtext, true, 10) == 0)
    {
        for (new i = 0; i < GetMaxPlayers(); i++)
        {
            if (IsPlayerConnected(i)) SpawnPlayer(i);
        }
        return 1;
    }
    return 0;
}
Reply
#3

Nonameman Please help Me In THis Thread

https://sampforum.blast.hk/showthread.php?tid=316536
Reply
#4

Thanks Nonameman and RockStar™
Reply
#5

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/spawnall", true))
    {
        for (new i = 0; i < MAX_PLAYERS; i++)
        {
            if (IsPlayerConnected(i)) SpawnPlayer(i);
        }
        return 1;
    }
    return 0;
}
Reply
#6

I'm glad to help you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)