01.08.2014, 05:05
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);

