SA-MP Forums Archive
Two simple tiny little questions. - 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: Two simple tiny little questions. (/showthread.php?tid=376886)



Two simple tiny little questions. - _Khaled_ - 12.09.2012

I use Y_INI, I just want to add +1 for pArrests and pRobberies

Like for example
pawn Код:
GivePlayerMoney(playerid,PlayerInfo[playerid][pCash] +2000);
but for pArrests and pRobberies, everything is defined in Y-INI, I just need this line for them, someone? :/


EDIT: Is there any way I can remove the F4 reclass thing?


Re: Two simple tiny little questions. - Camacorn - 12.09.2012

For the arrests and robberies:
Код:
PlayerInfo[playerid][pArrests]=PlayerInfo[playerid][pArrests]+1;
PlayerInfo[playerid][pRobberies]=PlayerInfo[playerid][pRobberies]+1;
EDIT: For the F4 disabling, sorry, but not that i know of, unless you make a function that detects if the player went to class selection without using /RECLASS or something of that nature, and then respawn them with their current class.


Re: Two simple tiny little questions. - _Khaled_ - 12.09.2012

Thanks!