25.05.2014, 16:30
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.
- When they use the command, it sets their hours to 4 and gives them +75 credits.
- 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 ..
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!
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
pawn Код:
PlayerInfo[giveplayerid][pConnectHours] == 4
PlayerInfo[giveplayerid][pCredits] += 75
pawn Код:
PlayerInfo[playerid][pAdmin] >= 2
zCMD by the way.
Thanks a lot!