OnPlayerKeyStateChange
#2

OnPlayerKeyStateChange or OnPlayerStateChange?

Well....

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
     if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
     {
        if (newkeys & KEY_CTRL_BACK)
        {
            if(IsPlayerInRangeOfPoint(playerid, 6.0,2212.7642,-2289.8892,14.7647))
            {
                if(KaupasidVeokil[vehid] == 500) return SCM(playerid, V_HPUNANE, "Veok on tooteid tдis!");
                if(!OnT88Auto[vehid]) return SCM(playerid, V_HPUNANE, "See ei ole tццauto!");
                if(GetVehicleModel(vehid) != 499) return SCM(playerid, V_HPUNANE, "See sхiduk ei ole kaubavedaja veok!");
                TogglePlayerControllable(playerid, 0);
                GameTextForPlayer(playerid, "Alustati kaupade pealelaadimist veokisse", 2000, 5);
                SetTimerEx("KaubadPeale",5000, false, "ii",playerid, vehid);
            }
        }
    }
    return 1;
}
Try that.
Reply


Messages In This Thread
OnPlayerKeyStateChange - by AA9 - 22.04.2014, 19:28
Re: OnPlayerKeyStateChange - by Fel486 - 22.04.2014, 19:38
Re: OnPlayerKeyStateChange - by Konstantinos - 22.04.2014, 19:43
Re: OnPlayerKeyStateChange - by AA9 - 22.04.2014, 19:44
Re: OnPlayerKeyStateChange - by AA9 - 22.04.2014, 19:46

Forum Jump:


Users browsing this thread: 2 Guest(s)