Buydrugs help
#1

The variable is
pawn Код:
enum pInfo
{
    drugs//the variable that will store the player's amount of drugs he have.
}
Here is the code to check how much drugs you have
pawn Код:
CMD:dinv(playerid,params[])//creating a checkweed cmd.
{
    new string[128];//this is the variable which will store the info of the message we will send to the player.
    format(string,sizeof(string),"You have %d drugs on you!",PlayerInfo[playerid][drugs]);//formating the message we will send to the player the info of his drugs.
    SendClientMessage(playerid,-1,string);//sending the formated message.
    return 1;
}
I want to make a little code to /buydrugs amount
Can someone help?
Thanks!
Reply


Messages In This Thread
Buydrugs help - by RandomDude - 13.07.2013, 18:03
Re: Buydrugs help - by TH3_R3D™ - 13.07.2013, 18:21
Re: Buydrugs help - by mahdi499 - 13.07.2013, 18:47
Re: Buydrugs help - by RandomDude - 13.07.2013, 19:54

Forum Jump:


Users browsing this thread: 1 Guest(s)