[PROBLEM]Pickup
#1

Hello! I have a little problem with the pickups! When I walk on them, they rotate my player. Do you know why?
Reply
#2

Bump!
Reply
#3

Post the OnPlayerPickupPickup code so we can see what is going on.
Reply
#4

Quote:
Originally Posted by Hyperfire
Посмотреть сообщение
Post the OnPlayerPickupPickup code so we can see what is going on.
This is a pickup:
HitmanHQ = AddStaticPickup(1239, 1, 1081.0978,-344.8295,73.9807, -1);


And here is the OnPlayerPickupPickUp code:
if(pickupid == HitmanHQ)
GameTextForPlayer(playerid,"~r~ TYPE /ENTER TO GET INSIDE THE HQ!",15000,5);
Reply
#5

Can you post the whole code?
Reply
#6

Quote:
Originally Posted by Hyperfire
Посмотреть сообщение
Can you post the whole code?
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == Intext)
GameTextForPlayer(playerid,"~r~ TYPE /OUT TO EXIT THE AREA!",15000,5);
if(pickupid == Extint)
GameTextForPlayer(playerid,"~r~ TYPE /IN TO ENTER THE AREA!",15000,5);
if(pickupid == LvSmurdGoUp)
SetPlayerPos(playerid,1603.0958,1775.6573,37.3125) ;
SetPlayerFacingAngle(playerid,11.2675);
if(pickupid == LvSmurdGoDown)
SetPlayerPos(playerid,1630.4812,1797.9111,10.8203) ;
SetPlayerFacingAngle(playerid,338.9939);
if(pickupid == HitmanWeapons)
GameTextForPlayer(playerid,"~r~ TYPE /ARMOUR TO EQUIP!",15000,5);
if(pickupid == Hotdog)
GameTextForPlayer(playerid,"~r~ TYPE /HOTDOG TO EAT!",15000,5);
if(pickupid == ArmyWeapons)
GameTextForPlayer(playerid,"~r~ TYPE /ARMOUR TO EQUIP!",15000,5);
if(pickupid == HitmanHQ)
GameTextForPlayer(playerid,"~r~ TYPE /ENTER TO GET INSIDE THE HQ!",15000,5);
if(pickupid == VLAHQ)
GameTextForPlayer(playerid,"~r~ TYPE /ENTER TO GET INSIDE THE HQ!",15000,5);
if(pickupid == VLAExit)
GameTextForPlayer(playerid,"~r~ TYPE /EXIT TO GET OUTSIDE!",15000,5);
if(pickupid == climb1)
GameTextForPlayer(playerid,"~r~ TYPE /CLIMB TO GO UP!",1500,5);
if(pickupid == climb2)
GameTextForPlayer(playerid,"~r~ TYPE /CLIMB TO GO UP!",1500,5);
if(pickupid == climb3)
GameTextForPlayer(playerid,"~r~ TYPE /CLIMB TO GO UP!",1500,5);
if(pickupid == climb4)
GameTextForPlayer(playerid,"~r~ TYPE /CLIMB TO GO UP!",1500,5);
if(pickupid == climb5)
GameTextForPlayer(playerid,"~r~ TYPE /CLIMB TO GO UP!",1500,5);
if(pickupid == climb6)
GameTextForPlayer(playerid,"~r~ TYPE /CLIMB TO GO UP!",1500,5);
if(pickupid == climb7)
GameTextForPlayer(playerid,"~r~ TYPE /CLIMB TO GO UP!",1500,5);
if(pickupid == climb
GameTextForPlayer(playerid,"~r~ TYPE /CLIMB TO GO UP!",1500,5);
if(pickupid == climb9)
GameTextForPlayer(playerid,"~r~ TYPE /CLIMB TO GO UP!",1500,5);
if(pickupid == climb10)
GameTextForPlayer(playerid,"~r~ TYPE /CLIMB TO GO UP!",1500,5);
return 1;
}
Reply
#7

Remove
pawn Код:
SetPlayerFacingAngle(playerid,11.2675);
pawn Код:
SetPlayerFacingAngle(playerid,338.9939);
Reply
#8

Quote:
Originally Posted by MarkoN
Посмотреть сообщение
Remove
pawn Код:
SetPlayerFacingAngle(playerid,11.2675);
pawn Код:
SetPlayerFacingAngle(playerid,338.9939);
Oh, my GOD! THANK YOU! REP+!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)