GunShop enter/exit
#1

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;
}
Reply


Messages In This Thread
GunShop enter/exit - by Deken - 22.12.2018, 09:29
Re: GunShop enter/exit - by zerruv - 22.12.2018, 13:43
Re: GunShop enter/exit - by Deken - 22.12.2018, 14:15
Re: GunShop enter/exit - by Deken - 22.12.2018, 14:20
Re: GunShop enter/exit - by zerruv - 22.12.2018, 14:32
Re: GunShop enter/exit - by Deken - 22.12.2018, 14:33
Re: GunShop enter/exit - by Deken - 22.12.2018, 14:37

Forum Jump:


Users browsing this thread: 2 Guest(s)