PickUps Help
#1

Hi all,i have a probrem with pickups for example i have many pickups ,i will post tow of it to see how i am working:
PHP код:
new CrewBarEnter;
new 
CrewBarExit;
new 
SexShop1Enter;
new 
SexShop1Exit
PHP код:
CrewBarEnter CreatePickup(1272232441.1714,2065.4771,10.8203, -1);
SexShop1Enter CreatePickup(1272232085.5171,2073.9302,11.0547, -1); 
PHP код:
if(pickupid ==SexShop1Enter) {
     
SetPlayerPos(playerid,-100.0634,-23.3113,1000.7188);
    
SexShop1Exit CreatePickup(127223, -100.2415,-24.9275,1000.7188, -1);
     
SetPlayerInterior(playerid3);
     
SetPlayerVirtualWorld(playerid1);
    return 
1;
    }
    if(
pickupid ==SexShop1Exit) {
     
SetPlayerPos(playerid,2086.1890,2077.1143,11.0579);
     
SetPlayerInterior(playerid0);
     
DestroyPickup(SexShop1Exit);
     
SetPlayerVirtualWorld(playerid0);
    return 
1;
    } 
PHP код:
if(pickupid ==CrewBarEnter) {
    
SetPlayerInterior(playerid,11);
    
SetPlayerVirtualWorld(playerid1);
    
CrewBarExit CreatePickup(127223,501.7646,-67.5632,998.7578, -1);
     
SetPlayerPos(playerid,501.9742,-69.4052,998.7578);
    return 
1;
    }
    if(
pickupid ==CrewBarExit) {
    
SetPlayerInterior(playerid,0);
    
SetPlayerVirtualWorld(playerid0);
    
DestroyPickup(CrewBarExit);
     
SetPlayerPos(playerid,2443.5449,2065.0549,10.8203);
    return 
1;
    } 
The problem is that when i go to exit from crewbar i spawn to sexshop exit.Or when i go to exit from sexshop i spawn to crewbar exit.What i am doing wrong ,some helpplease,
Reply


Messages In This Thread
PickUps Help - by jimis - 24.07.2012, 07:55
Re: PickUps Help - by Devilxz97 - 24.07.2012, 08:24
Re: PickUps Help - by jimis - 24.07.2012, 08:26
Re: PickUps Help - by Devilxz97 - 24.07.2012, 08:28
Re: PickUps Help - by jimis - 24.07.2012, 08:29
Re: PickUps Help - by Devilxz97 - 24.07.2012, 08:32
Re: PickUps Help - by Devilxz97 - 24.07.2012, 08:44
Re: PickUps Help - by Devilxz97 - 24.07.2012, 08:51
Re: PickUps Help - by jimis - 24.07.2012, 08:56
Re: PickUps Help - by Devilxz97 - 24.07.2012, 08:59

Forum Jump:


Users browsing this thread: 2 Guest(s)