22.12.2018, 09:29
hello i have one question when i enter or leave gunshop my player stand like when you turn on right but i want t it to stand straight to look at the road no at wall
pawn Code:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys & KEY_SECONDARY_ATTACK)
{
if(IsPlayerInRangeOfPoint(playerid,3.0, 1368.2349,-1279.7242,13.5469))
{
SetPlayerInterior(playerid, 1);
SetPlayerPos(playerid,285.2896,-41.4183,1001.5156);
SetCameraBehindPlayer(playerid);
SendClientMessage(playerid,-1,""CRVENA"[BD:RP]"BELA"Dobrodosli u gunshop!");
}
else if(IsPlayerInRangeOfPoint(playerid,2.0,286.148986,-40.644397,1001.515625))
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid, 1368.4775,-1279.7662,13.5469);
SetCameraBehindPlayer(playerid);
SendClientMessage(playerid,-1,""CRVENA"[BD:RP]"BELA"Dovidjenja prijatan dan!");
}
}
return 1;
}