14.06.2009, 22:32
first ,make that a boolean. (bool)
then heres the command
then heres the command
Код:
if (strcmp("/c4buy", cmdtext, true, 10) == 0) { if(C4BUY[playerid] == true) return SendClientMessage(playerid,0xFF0000AA,"You already have one!"); C4BUY[playerid] = true; SendClientMessage(playerid,0xFF0000AA,"Bought."); return 1; }