Ref System.
#1

Good day mates.
I need a referral system, I've tried multiple times but I cannot get the script right. I want to see the code again, because I havn't scripted in awhile.

Params: /ref [playerid]

- When you do /ref, the player using the command has to have EXACTLY 3 playing hours.
pawn Код:
PlayerInfo[playerid][pConnectHours] == 3
- When they use the command, it sets their hours to 4 and gives them +75 credits.
pawn Код:
PlayerInfo[giveplayerid][pConnectHours] == 4
PlayerInfo[giveplayerid][pCredits] += 75
- Once they do the command, it sends a message to admins. I'm not so sure on this code, but it sends to anyone with ..
pawn Код:
PlayerInfo[playerid][pAdmin] >= 2
Sorry if I got some codings wrong, that's why I'm here so I can get help in fixing those mistakes. (-:

zCMD by the way.

Thanks a lot!
Reply


Messages In This Thread
Ref System. - by MaDsON - 25.05.2014, 16:30
Re: Ref System. - by NaClchemistryK - 25.05.2014, 16:36
Re: Ref System. - by MaDsON - 25.05.2014, 16:37
Re: Ref System. - by NaClchemistryK - 25.05.2014, 16:48

Forum Jump:


Users browsing this thread: 1 Guest(s)