15.03.2013, 21:56
You would have to do something like this
If you understand what I mean..
pawn Код:
new cigarettes[MAX_PLAYERS];
CMD:cigarettes(playerid,params[])
{
if(cigarettes[playerid] < 1) return SendClientMessage(playerid,-1,"You don't have any cigarettes");
//other code here
return 1;
}
CMD:buycigarettes(playerid,params[])
{
if(cigarettes[playerid] == 10) return SendClientMessage(playerid,-1,"You already have 10 cigarettes");
cigarettes[playerid] = 10;
return 1;
}