Jump to content

Problema SA:MP gamemode slark


 Share

Recommended Posts

Am luat si eu gamemode slark, am adaugat la lspd gardu tot, iar cand sunt duty si sunt si in masina si apas h nu se deschide poarta, poarta aia mare unde te duci sa dai arrest, am inteles ca este de la OnPlayerKeyStateChange

 

Eu la OnPlayerKeyStateChange in gm am asa

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) {
    new newcar = GetClosestVehicle2(playerid, 40), engine,lights,alarm,doors,bonnet,boot,objective;
       if(newkeys & KEY_JUMP && !(oldkeys & KEY_JUMP) && GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_CUFFED) ApplyAnimation(playerid, "GYMNASIUM", "gym_jog_falloff",4.1,0,1,1,0,0);
       if(IsKeyJustDown(KEY_SECONDARY_ATTACK, newkeys, oldkeys) && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
           if(IsABoat(newcar)) {
            if(PlayerInfo[playerid][pBoatLic] < 1) {
                if(TakingLesson[playerid] == 2) { }
                else {
                SendClientMessage(playerid,COLOR_WHITE, "You don't have a boat license.");
                ClearAnimations(playerid); }
            }
        }

 

Cine doreste sa ma ajute, am nevoie urgent!

Link to comment
Share on other sites

Incearca sa adaugi asta

if(IsACop(playerid)) {
           if(PlayerToPoint(15, playerid,1588.6552, -1637.9025, 15.0358)) {
               MoveObject(gatelspd,1596.7352,-1637.9025, 15.0358,2);
               SetTimer("lspdgateclose" ,9000 ,false);
               return true;
           }
           if(PlayerToPoint(15, playerid,135.2833, 1941.3331, 21.6932)) {
               MoveObject(gateng,122.0023, 1941.4100, 21.6932,2);
               SetTimer("nggateclose" ,9000 ,false);
               return true;
           }
           if(PlayerToPoint(15, playerid,1544.7007, -1630.7527, 13.2983)) {
               MoveObject(lspdbar,1544.7007, -1630.7527, 13.2983,1,0.0000, 0.0000, 90.0000);
               SetTimer("lspdbarclose" ,9000 ,false);
               return true;
           }
           if(PlayerToPoint(15, playerid,2293.8513, 2497.67554, 4.53215)) {
               MoveDynamicObject(gatelvpd[0], 2293.8513, 2497.6755, -2, 5.0);
               SetTimerEx("LVPDGates", 5000, false, "i", 1);
               return true;
           }           
           if(PlayerToPoint(15, playerid,2335.2009, 2443.6992, 1.8997)) {
               MoveDynamicObject(gatelvpd[1], 2335.2009, 2443.6992, 1.8997, 5.0);
               SetTimerEx("LVPDGates", 5000, false, "i", 2);
               return true;
           }       
           if(PlayerToPoint(15, playerid, 2238.2146, 2450.2695, 10.6961)) {
               MoveDynamicObject(gatelvpd[2], 2238.21460, 2450.26953, 10.69610, 1, 0.00000, 0.00000, 90.00000);
               SetTimerEx("LVPDGates", 5000, false, "i", 3);
               return true;
           }               
       }

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...