Where? - 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)
+--- Thread: Where? (
/showthread.php?tid=364929)
Where? -
Vizi - 01.08.2012
Hi
pawn Код:
//set player stats
PlayerInfo[playerid][pLevel] = 5;
GivePlayerCash(playerid, 400000);
with this all the player on registration will have 5 level and 400k but i dont know where to put it ?
Re: Where? -
Roko_foko - 01.08.2012
You can do this:
pawn Код:
OnPlayerSpawn(playerid)
{
if(PlayerInfo[playerid][pLevel] == 0)PlayerInfo[playerid][pLevel] = 5,GivePlayerCash(playerid, 400000);
//rest of the code :D
Re: Where? -
MP2 - 01.08.2012
Sigh. Just put it where the registration code is. If a message appear in-game like 'you are now registered' Ctrl+F for that in the pawn code and put it around there somewhere.
Re: Where? -
Vizi - 01.08.2012
thanks !!111