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


Messages In This Thread
small pick up problem - by RmRm - 18.03.2009, 20:54
Re: small pick up problem - by Metorea - 18.03.2009, 21:03
Re: small pick up problem - by RmRm - 18.03.2009, 21:20
Re: small pick up problem - by Metorea - 18.03.2009, 21:23
Re: small pick up problem - by RmRm - 18.03.2009, 21:25

Forum Jump:


Users browsing this thread: 1 Guest(s)