[POMOC] Nece da ude u kucu

Započeo Djankaa, Februar 20, 2011, 13:14:37 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
   if( newkeys == KEY_SECONDARY_ATTACK ) // Ako igrac pritisne enter ili f  -->mozete umjesto KEY_SECONDARY_ATTACK staviti nesta drugo...npr.KEY_SPRINT
    {
        if(IsPlayerInRangeOfPoint(playerid, 3.0, 2496.049804,-1695.238159,1014.742187))
      {//Mayor enter.
         GameTextForPlayer(playerid, "~g~Mayor dvoriste", 5000, 1);
         SetPlayerInterior( playerid, 0 );
         SetPlayerPos(playerid,2496.049804,-1695.238159,1014.742187);
      }
      if(IsPlayerInRangeOfPoint(playerid,  3.0, 1368.2216,-1639.9666,13.3828))
      {//Mayor exit.
         GameTextForPlayer(playerid, "~w~Mayor kuca", 5000, 1);
         SetPlayerInterior( playerid, 3 );
         SetPlayerPos(playerid,1368.2216,-1639.9666,13.3828);
      }
   }
}

evo ovako uradi dodem do kuce stisnem enter i ono me samo pred kucu stavi i kaze Mayor Kuca mi pise evo slika

http://slike.hr/slike/samp378_5672a.png.html moze mi neko reci kako kad stisnem enter da ude u kucu a ne da ga opet pred kucu

Tu pogledaj koji ces int xd i pisu ti koordinate :S         http://weedarr.wikidot.com/interior