Jump to content

[REZOLVAT] Problama apartamente


Cuza
 Share

Recommended Posts

  • Username : Cuza
  • Problema întâlnită: Apartamentele sunt dar lift nu e
  • Detalii despre problemă: Vreau si eu sistemul ala de lift va rog
  • Ce ai încercat să faci înainte să postezi?: Inca nimic
  • Cod sursa (recomandat pastebin.com) :  Nu am ..codul
  • Alte detalii : Va rog sa ma ajutati
 
Link to comment
Share on other sites

Chiar acum, Cuza a spus:

Ms mult de ajutor.. dar mai am o problema la gamemode burned... nu pot da lock  la masini.. 

nu mere nici N nici comanda /lock :((( care ma ajuta va roggg

 

verifica onplayerkeystatechange, respectiv tastele folosite.

Link to comment
Share on other sites

Acum 2 minute, LolyAdv a spus:

verifica onplayerkeystatechange, respectiv tastele folosite.

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) {
    new string[180];
    new engine,lights,alarm,doors,bonnet,boot,objective;

    if(newkeys & KEY_SECONDARY_ATTACK) {
       enter_apartament(playerid);    
       if(IsPlayerInRangeOfPoint(playerid,6.0,1959.4673,1017.9394,993.4293)) {
            if(RouletteInGame[playerid] == 1) return SCM(playerid,-1,"Deja joci la ruleta.");
            for(new t; t<20; t++) if(t != 15) TextDrawShowForPlayer(playerid,CasinoDraw[t]);
            SelectTextDrawEx(playerid,0xFFFFFFFF),RouletteInGame[playerid] = 1;
            update_ruleta(playerid);
            zmidialog[playerid] = 0;
        }
       if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
           new car = GetClosestVehicle(playerid);
           if(car != INVALID_VEHICLE_ID && IsPlayerNearVehicle(playerid,car,5)) {
               for(new i = 0; i < 10; i++) {
                    if(PlayerInfo[playerid][pCarKey] != 0) {
                        if(CarInfo[PlayerInfo[playerid][pCarKey]][Spawned] == car) SetVehicleParamsForPlayer(car, playerid, 0, 0);
                    }    
               }

 

Link to comment
Share on other sites

 if(newkeys & KEY_SECONDARY_ATTACK) {
       enter_apartament(playerid);    
       if(IsPlayerInRangeOfPoint(playerid,6.0,1959.4673,1017.9394,993.4293)) {
            if(RouletteInGame[playerid] == 1) return SCM(playerid,-1,"Deja joci la ruleta.");
            for(new t; t<20; t++) if(t != 15) TextDrawShowForPlayer(playerid,CasinoDraw[t]);
            SelectTextDrawEx(playerid,0xFFFFFFFF),RouletteInGame[playerid] = 1;
            update_ruleta(playerid);
            zmidialog[playerid] = 0;

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

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