01.06.2009, 06:38
you hsould create a variable like..
next you need to assign a value to that when a player buys drugs. Do
Now to use drugs you do
hope it helped!
pawn Код:
new holdingDrugs[MAX_PLAYERS];//on top of script under include a_samp
pawn Код:
holdingDrugs[playerid] += 1; // or any other vaue. you can use strtok to set it then it would be... holdingDrugs[playerid] += tmp; or something like it.
pawn Код:
if(holdingDrugs[playerid] > 0) { /* do what happens when he uses the drugs and dont forget to reduce the holdingDrugs */ holdingDrugs[playerid] --;}
else { /* do here what message he/she hsould get when he doesn't have drugs. */}

