[Include] OnPlayerSpawnEx (OPSex) - Make everything easy
#11

Nice, but this can also be used in OnPlayerSpawn itself by creating variables.

For example,
pawn Код:
new spawned[MAX_PLAYERS];

public OnPlayerSpawn(playerid)
{
    spawned[playerid]++; //Counts the spawned rates +1.
    SendFormattedMessage(playerid, -1, "Spawned times:%d", spawned[playerid]);
    //Other stuffs.
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
   spawned[playerid] = 0;
   //Other stuffs.
   return 1;
}
Nice work though.
Reply


Messages In This Thread
OnPlayerSpawnEx (OPSex) - Make everything easy - by JaKe Elite - 15.10.2012, 10:37
Re: OnPlayerSpawnEx (OPSex) - Make everything easy - by Emmet_ - 15.10.2012, 10:41
Re: OnPlayerSpawnEx (OPSex) - Make everything easy - by JaKe Elite - 15.10.2012, 10:43
Re: OnPlayerSpawnEx (OPSex) - Make everything easy - by Emmet_ - 15.10.2012, 10:48
Re: OnPlayerSpawnEx (OPSex) - Make everything easy - by JaKe Elite - 15.10.2012, 10:53
Re: OnPlayerSpawnEx (OPSex) - Make everything easy - by JaKe Elite - 15.10.2012, 10:59
Re: OnPlayerSpawnEx (OPSex) - Make everything easy - by JaKe Elite - 15.10.2012, 11:26
Re: OnPlayerSpawnEx (OPSex) - Make everything easy - by Niko_boy - 15.10.2012, 13:51
Re: OnPlayerSpawnEx (OPSex) - Make everything easy - by fiki574 - 16.10.2012, 08:13
Re: OnPlayerSpawnEx (OPSex) - Make everything easy - by razvan20100 - 16.10.2012, 08:19
Re: OnPlayerSpawnEx (OPSex) - Make everything easy - by Lordzy - 16.10.2012, 11:26
Re: OnPlayerSpawnEx (OPSex) - Make everything easy - by HuSs3n - 16.10.2012, 21:10
Re: OnPlayerSpawnEx (OPSex) - Make everything easy - by JaKe Elite - 19.10.2012, 09:03
Re: OnPlayerSpawnEx (OPSex) - Make everything easy - by JaKe Elite - 19.10.2012, 09:28
Re: OnPlayerSpawnEx (OPSex) - Make everything easy - by RajatPawar - 19.10.2012, 11:53
Re: OnPlayerSpawnEx (OPSex) - Make everything easy - by Mafioso97 - 19.10.2012, 14:44
Re: OnPlayerSpawnEx (OPSex) - Make everything easy - by JaKe Elite - 20.10.2012, 00:52
Re: OnPlayerSpawnEx (OPSex) - Make everything easy - by Excips - 23.10.2012, 16:30
Re: OnPlayerSpawnEx (OPSex) - Make everything easy - by Skillet` - 23.10.2012, 16:48

Forum Jump:


Users browsing this thread: 1 Guest(s)