SA-MP Forums Archive
Having problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Having problem (/showthread.php?tid=352532)



Having problem - RyanPetersons - 20.06.2012

pawn Код:
public OnPlayerPickUpPickup(playerid,pickupid)
{
if(pickupid == GetinBank)
{
SetPlayerPos(playerid,2313,-4, 27);
SendClientMessage(playerid,0xD6D6D6AA,"Type /bank");
SetCameraBehindPlayer(playerid);
Bank1[playerid] = 1;
}
if(pickupid == GetoutBank)
{
if(Bank1[playerid] == 1)
{
SetPlayerPos(playerid,1481.130371,-1763.401000, 18.795755);
SetPlayerFacingAngle(playerid,0.0);
SetCameraBehindPlayer(playerid);
}
if(Bank2[playerid] == 1)
SetPlayerPos(playerid,2475.4209,1019.2725,10.8203);
SetPlayerFacingAngle(playerid,0.0);
SetCameraBehindPlayer(playerid);
}
if(pickupid == GetinBank1)
{
SetPlayerPos(playerid,2313,-4, 27);
SendClientMessage(playerid,0xD6D6D6AA,"Type /bank");
SetCameraBehindPlayer(playerid);
Bank2[playerid] = 1;
}
return 1;
}
When i reach at the pickup i don't get inside the bank? I don't know why that is so?
Can you help me with it, tell me wat mistake i did?


Re: Having problem - [MM]RoXoR[FS] - 20.06.2012

Add this
pawn Код:
SetPlayerInterior(playerid,Interior ID);
https://sampwiki.blast.hk/wiki/InteriorIDs List of Interior ID


Re: Having problem - RyanPetersons - 20.06.2012

There are alot of interiors ids which are same?


Re: Having problem - HighPitchedVoice - 20.06.2012

SetPlayerInterior(playerid,-1);


Re: Having problem - [MM]RoXoR[FS] - 20.06.2012

Go inside the bank from debug and type /interior to get interior id.


Re: Having problem - Faisal_khan - 20.06.2012

Try these co-ords.
X = 2305.7000
Y = -16.5000
Z = 26.7500

Interior 0