pickup not working in vehicle
#1

Here's my code.. What's missing for my mats pickup?

Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
	if(pickupid == mats) {
    if(PlayerInfo[playerid][pSupplies] >= 250)
	{
 		SendClientMessage(playerid, COLOR_BLUE, "You got 100 mats for your 250 supplies");
   		PlayerInfo[playerid][pMats] += 100;
   		PlayerInfo[playerid][pSupplies] -= 250;
	}
	}
    if(pickupid == emtchange) {
    if(PlayerInfo[playerid][pFaction] != 255 && FactionInfo[PlayerInfo[playerid][pFaction]][fType] == 4)
	{
	    TogglePlayerControllable(playerid,false);
		ShowMenuForPlayer(emtclothes,playerid);
	}
	}
    if(pickupid == pdchange) {
    if(PlayerInfo[playerid][pFaction] != 255 && FactionInfo[PlayerInfo[playerid][pFaction]][fType] == 1)
	{
    TogglePlayerControllable(playerid,false);
	ShowMenuForPlayer(pdclothes,playerid);
	}
	}
    if(pickupid == fbichange) {
    if(PlayerInfo[playerid][pFaction] != 255 && FactionInfo[PlayerInfo[playerid][pFaction]][fType] == 2)
	{
    TogglePlayerControllable(playerid,false);
	ShowMenuForPlayer(fbiclothes,playerid);
	}
	}
	if(pickupid == dtp) {
    TogglePlayerControllable(playerid,false);
	ShowMenuForPlayer(DrivingM,playerid);
	}
	if(pickupid == spickup) {
    TogglePlayerControllable(playerid,false);
	ShowMenuForPlayer(FStyles,playerid);
	}
	if(pickupid == ammu) {
    TogglePlayerControllable(playerid,false);
	ShowMenuForPlayer(ammumenu,playerid);
	}
	if(pickupid == wlic) {
    GameTextForPlayer(playerid, "~>~~w~/buyweaplic~<~", 3000, 3);
	}
	if(pickupid == flic) {
    GameTextForPlayer(playerid, "~>~~w~/buyfishlic~<~", 3000, 3);
	}
	if(pickupid == fsell) {
    GameTextForPlayer(playerid, "~>~~w~/sellfish~<~", 3000, 3);
	}
	if(pickupid == drugs) {
	ShowPlayerDialog(playerid,7,DIALOG_STYLE_LIST,"Drugs","Weed Seeds\nCocaine Seeds\nPsilocybin mushrooms Seeds\nLSD(Acid)","Purchase","Cancel");
	}
	if(pickupid == supplies) {
    GameTextForPlayer(playerid, "~>~~w~/buysupplies~<~", 3000, 3);
	}
}
Works fine when I am on foot but when in a vehicle this does not work?
Reply


Messages In This Thread
pickup not working in vehicle - by Phil_Cutcliffe - 10.02.2013, 15:21
Re: pickup not working in vehicle - by Phil_Cutcliffe - 10.02.2013, 17:49
Re: pickup not working in vehicle - by batonsa - 10.02.2013, 17:54
Re: pickup not working in vehicle - by Phil_Cutcliffe - 10.02.2013, 20:07
Re: pickup not working in vehicle - by MP2 - 10.02.2013, 20:10
Re: pickup not working in vehicle - by Phil_Cutcliffe - 10.02.2013, 21:49
Re: pickup not working in vehicle - by Babul - 11.02.2013, 00:02
Re: pickup not working in vehicle - by MP2 - 11.02.2013, 01:18

Forum Jump:


Users browsing this thread: 1 Guest(s)