23.12.2013, 09:42
pawn Код:
else if ((((newkeys & (KEY_SPRINT)) == (KEY_SPRINT)) && ((oldkeys & (KEY_SPRINT)) != (KEY_SPRINT))))
{
if(IsPlayerInRangeOfPoint(playerid,3.0,1123.4500,-2036.6272,69.8872))
{
SetPlayerInterior(playerid, 1);
SetPlayerPos(playerid,938.0398,97.6458,1001.2659);
PlayerInfo[playerid][pInt] = 1;
TogglePlayerControllable(playerid,0);
GameTextForPlayer(playerid, "Ucitavanje Objekata", 5000, 5);
SetTimerEx("UcitavanjeObejekata", 3000, false, "i", playerid);
}
else if(IsPlayerInRangeOfPoint(playerid,3.0,938.0398,97.6458,1001.2659))
{
SetPlayerPos(playerid,1123.4500,-2036.6272,69.8872);
GameTextForPlayer(playerid, "~w~Los Santos", 5000, 1);
SetPlayerInterior(playerid, 0);
PlayerInfo[playerid][pInt] = 0;
}
}