[REQ]Dontator Points(VIP Tokens)
#4

Well, Simple, Just do a command to give the player as usual but check whether the player had required amount tokens with 'if' statement. If he do have tokens and proceed to buy, Just add
Код:
new currentoks = PlayerInfo[playerid][ptokens];
PlayerInfo[playerid][ptokens] = currentoks - some tokens // No.of tokens you want to deduct.
new INI:File = INI_Open(UserPath(TarID));
INI_SetTag(File, "VIP Tokens");
INI_WriteInt(File,"Tokens:", PlayerInfo[TarID][ptokens]);
INI_Close(File);
Reply


Messages In This Thread
[REQ]Dontator Points(VIP Tokens) - by Ciarannn - 30.07.2014, 05:45
Re: [REQ]Dontator Points(VIP Tokens) - by mjay768 - 30.07.2014, 08:28
Re: [REQ]Dontator Points(VIP Tokens) - by Ciarannn - 31.07.2014, 20:37
Re: [REQ]Dontator Points(VIP Tokens) - by mjay768 - 01.08.2014, 05:05

Forum Jump:


Users browsing this thread: 1 Guest(s)