12.08.2012, 09:23
Why are my pickups not doing their codes i set for them, yet they do the code that i set for another pickup.
Heres the codes
Whats wrong with this?
Heres the codes
Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == LVL2Pickup)
{
SetPlayerPos(playerid, 951.09997558594, 2144.1000976563, 1011);
GameTextForPlayer(playerid,"~r~I WANT TO PLAY A GAME",5000,5);
return 1;
}
if(pickupid == TrapPickup)
{
SetPlayerPos(playerid, 935.3141,2144.1475,1013.7524);
SetPlayerFacingAngle( playerid, 272.7581);
TogglePlayerControllable(playerid, 0);
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
GameTextForPlayer(playerid,"~r~I WANT TO PLAY A GAME",5000,5);
SetCameraBehindPlayer(playerid);
DestroyPickup(TrapPickup);
return 1;
}
return 1;
}

