24.07.2012, 07:55
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:
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,
PHP код:
new CrewBarEnter;
new CrewBarExit;
new SexShop1Enter;
new SexShop1Exit;
PHP код:
CrewBarEnter = CreatePickup(1272, 23, 2441.1714,2065.4771,10.8203, -1);
SexShop1Enter = CreatePickup(1272, 23, 2085.5171,2073.9302,11.0547, -1);
PHP код:
if(pickupid ==SexShop1Enter) {
SetPlayerPos(playerid,-100.0634,-23.3113,1000.7188);
SexShop1Exit = CreatePickup(1272, 23, -100.2415,-24.9275,1000.7188, -1);
SetPlayerInterior(playerid, 3);
SetPlayerVirtualWorld(playerid, 1);
return 1;
}
if(pickupid ==SexShop1Exit) {
SetPlayerPos(playerid,2086.1890,2077.1143,11.0579);
SetPlayerInterior(playerid, 0);
DestroyPickup(SexShop1Exit);
SetPlayerVirtualWorld(playerid, 0);
return 1;
}
PHP код:
if(pickupid ==CrewBarEnter) {
SetPlayerInterior(playerid,11);
SetPlayerVirtualWorld(playerid, 1);
CrewBarExit = CreatePickup(1272, 23,501.7646,-67.5632,998.7578, -1);
SetPlayerPos(playerid,501.9742,-69.4052,998.7578);
return 1;
}
if(pickupid ==CrewBarExit) {
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid, 0);
DestroyPickup(CrewBarExit);
SetPlayerPos(playerid,2443.5449,2065.0549,10.8203);
return 1;
}