Bought object?
#5

You would have to do something like this
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;
}
If you understand what I mean..
Reply


Messages In This Thread
Bought object? - by davve95 - 15.03.2013, 20:17
Re: Bought object? - by DiGiTaL_AnGeL - 15.03.2013, 20:42
Re: Bought object? - by davve95 - 15.03.2013, 21:51
Re: Bought object? - by DiGiTaL_AnGeL - 15.03.2013, 21:56
Re: Bought object? - by Jstylezzz - 15.03.2013, 21:56
Re: Bought object? - by davve95 - 15.03.2013, 22:29

Forum Jump:


Users browsing this thread: 1 Guest(s)