19.10.2016, 06:52
Hello guys, how to properly code this?
thanks!
Код:
CMD:usecoca(playerid, params[]) { if(PlayerInfo[playerid][Cocaine] >=2) { SendClientMessage(playerid, -1, "you just used 2 grams of cocaine"); PlayerInfo[playerid][Cocaine] // how to take 2 cocaine from him? } else SendClientMessage(playerid, -1, "you dont have enough coca"); }