Exp on payday - 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: Exp on payday (
/showthread.php?tid=465887)
Exp on payday -
iWaYz - 24.09.2013
Guys can someone tell me how can I make a function that checks if player is Level 1 VIP and if the player VIP level is 1 he'll receive +1 extra Exp on PayDay.
I have this funciton:
Код:
if(PlayerInfo[i][ExpS] == 0)
{
PlayerInfo[i][Exp]++;
}
else
{
PlayerInfo[i][Exp] += PlayerInfo[i][ExpS];
}
The function that i'm showin give +1 Exp on every member wich vip level is 0.
Re: Exp on payday -
DanishHaq - 24.09.2013
Just above the code you gave us, try and use this:
pawn Код:
if(PlayerInfo[i][VIP] >= 1) // or whatever your variable is
{
PlayerInfo[i][Exp]++;
}
Re: Exp on payday -
iWaYz - 24.09.2013
Thank you, but can you tell me how can I make this function give +3 Exp?
Re: Exp on payday - Patrick - 24.09.2013
Here
Re: Exp on payday -
iWaYz - 24.09.2013
Thank you. +rep for both of you guys.