SA-MP Forums Archive
When a person spawns - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: When a person spawns (/showthread.php?tid=191154)



When a person spawns - Kitten - 18.11.2010

Solved


Re: When a person spawns - Lorenc_ - 18.11.2010

I reckon you should show the OnPlayerSpawn callback so we can clearly identify the problem.


Re: When a person spawns - Kitten - 18.11.2010

Solved


Re: When a person spawns - Kitten - 19.11.2010

Solved


Re: When a person spawns - -Rebel Son- - 19.11.2010

Yes sir, you say when they spawn, it makes everyone near infected, if you look at your code, you have
Код:
Infected(i);
in the loop, guessing that's your infection variable, just take it out of the loop, make it

Код:
Infected(playerid);
Once out of the loop, it will make only the player infected.