Drug System?
#2

y dont you do something like this


new PlayerHasseeds[MAX_PLAYERS];

new PlayerHasplanted[MAX_PLAYERS];

new Playerhasedrugs[MAX_PLAYERS];//make a veriable to see if player hase drugs


if(!strcmp(cmdtext, "/buydseeds", true))
//if statment to see if player is in the area to buy seeds
PlayerHasseeds[playerid] = 1;

else

SendClientMessage(playerid,0xFFFF00AA,"your not near a store to buy seeds");

if(!strcmp(cmdtext, "/plantseeds", true))
GetPlayerPos(playerid, x, y, z);
//creat pickup at player location
PlayerHasplanted[playerid] = 1;
PlayerHasseeds[playerid] = 0;


esle


SendClientMessage(playerid,0xFFFF00AA,"your dont have Seeds");

if(!strcmp(cmdtext, "/takedrug", true))
//player action !
// use the player hase drug veriable
Playerhasedrugs[playerid] = 0;

else

return 1;
}

if(!strcmp(cmdtext, "/digupdrug", true))
//use setplayerto point to see if player is where he planted the drugs
//action
Playerhasedrugs[playerid] = 1;
PlayerHasplanted[playerid] = 0;
else

SendClientMessage(playerid,0xFFFF00AA,"your not near Drugs");

return 1;
{




ok idk if that would work it just a gusse but if it dose post the thing back up
Reply


Messages In This Thread
Drug System? - by Abernethy - 23.07.2009, 06:01
Re: Drug System? - by sggassasin - 23.07.2009, 09:51
Re: Drug System? - by Abernethy - 23.07.2009, 09:56

Forum Jump:


Users browsing this thread: 1 Guest(s)