small pick up problem
#1

ok i made this 2 pick ups to enter and get out of my house so the pick up i use to enter works fine but the other one inside house only works once then i never see it again

Quote:

Top of the script
new hqEnter;
new hqexit;

OnGameModeInit

hqEnter = CreatePickup(1273,24,2196.6069,604.1165,11.644;// house Enter
Hqexit = CreatePickup(1273,2,234.2410,1064.1627,1084.2117);// house exit


public OnPlayerPickUpPickup(playerid, pickupid)
{
if (pickupid == hqEnter && PlayerAdminLevel[playerid] >= 2)
{
SetPlayerVirtualWorld(playerid,1);
SetPlayerInterior(playerid,6);
SetPlayerPos(playerid,234.2483,1065.4868,1084.2097 );
SetPlayerFacingAngle(playerid,0.0000);
SetCameraBehindPlayer(playerid);
SendClientMessage(playerid,0x00C7FFAA,"Welcome!.") ;
}


if (pickupid == hqexit)
{
SetPlayerVirtualWorld(playerid,0);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,2191.8118,605.2811,11.644;
SetPlayerFacingAngle(playerid,0.0000);
SetCameraBehindPlayer(playerid);
SendClientMessage(playerid,0x00C7FFAA,"You left house have a nice day!.");
}

return 1;
}

Reply
#2

I think Your pickup types are wrong:

https://sampwiki.blast.hk/wiki/AddStaticPickup
Reply
#3

i used type 2 for both but the exit wasnt working well so i am tryin others but still not working properly
Reply
#4

Quote:
Originally Posted by DASA
i used type 2 for both but the exit wasnt working well so i am tryin others but still not working properly
2 Deffinetely works just takes a minute or two to respawn.
Reply
#5

ok i will try 24 then it never goes away right
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)