[Ajuda] Alterar Comando !
#3

no onplayerkeystatechange:

PHP код:
    if ((newkeys KEY_HORN ) && !(oldkeys KEY_HORN ))
     {
          for(new 
0MAX_PORTOESp++)
        {
              
format(stringsizeof(string), PASTA_PORTOESp);
            if(!
IsPlayerInRangeOfPoint(playerid50.0dini_Float(string"aCordX"), dini_Float(string"aCordY"), dini_Float(string"aCordZ"))) continue;
    
            if(
strcmp(dini_Get(string"Dono"), GetPlayerNameEx(playerid), false) == || strcmp(dini_Get(string"Convidado1"), GetPlayerNameEx(playerid), false) == || strcmp(dini_Get(string"Convidado2"), GetPlayerNameEx(playerid), false) == || strcmp(dini_Get(string"Convidado3"), GetPlayerNameEx(playerid), false) == || pAdmin[playerid] > 2)
            {
                 
MoveDynamicObject(dini_Int(string"Id"), dini_Float(string"aCordX"), dini_Float(string"aCordY"), dini_Float(string"aCordZ"), 4.0);
                 
SetTimerEx("portaob"4000false"dd"playeridp);
            }
            else 
GameTextForPlayer(playerid,"~r~Este portao nao e seu!"20003);
          }
      } 
final do gamemode:

PHP код:
forward portaob(playerididportao);
public 
portaob(playerididportao) {
    
format(filesizeof(file), PASTA_PORTOESidportao);
    if(!
dini_Exists(file)) return 1;
    
MoveDynamicObject(dini_Int(file"Id"), dini_Float(file"fCordX"), dini_Float(file"fCordY"), dini_Float(file"fCordZ"), 4.0);
    return 
1;

Reply


Messages In This Thread
Alterar Comando ! - by lucas3366 - 01.08.2018, 23:28
Re: Alterar Comando ! - by Minerva - 01.08.2018, 23:36
Re: Alterar Comando ! - by LeViNS - 01.08.2018, 23:37
Re: Alterar Comando ! - by lucas3366 - 01.08.2018, 23:55
Re: Alterar Comando ! - by LeViNS - 02.08.2018, 00:07
Re: Alterar Comando ! - by lucas3366 - 02.08.2018, 00:21
Re: Alterar Comando ! - by LeViNS - 02.08.2018, 00:32
Re: Alterar Comando ! - by lucas3366 - 02.08.2018, 00:45
Re: Alterar Comando ! - by LeViNS - 02.08.2018, 00:53
Re: Alterar Comando ! - by lucas3366 - 02.08.2018, 02:59

Forum Jump:


Users browsing this thread: 1 Guest(s)