23.07.2009, 09:51
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
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

