[DUV Simples] Achar codigo.
#5

Entao vini eu ja tenho mais eu queria coloca, se o cara tiver pilotando, nao no G, ele nao podesse digitar esses cmds.

CMD:

PHP код:
    if(strcmp("/baseheli"cmdtexttrue10) == 0)
       {
           if(!
IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1"  Vocк precisa esta detro do heli !");
           {
               
tmp strtok(cmdtextidx);
             if(
IsPlayerInAnyVehicle(playerid) == 0) return SendClientMessage(playerid, -1"  Vocк Nao pode digita esse comando sedo o piloto !");
            new 
Float:XFloat:YFloat:Z;
            
GetPlayerPos(playeridXYZ);
            
tmp strtok(cmdtextidx);
            if(
30.4057)
            {
            
RemovePlayerFromVehicle(playerid);
            return 
1;
            }
            
AttachObjectToVehicle(baseheli, -1.350097, -0.400024, -0.500000270.0180.0180.0);
            
SendClientMessage(playeridCOLOR_WHITE"Vocк Pode atirar do Heli agora.");
        }
           return 
1;
      }
    if(
strcmp("/tirabase"cmdtexttrue10) == 0)
       {
           if(
IsPlayerInVehicle(playeridheli))
        {
            if(!
IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1"  Vocк precisa esta detro do heli !");
               {
                  new 
Float:XFloat:YFloat:Z;
                
GetPlayerPos(playeridXYZ);
                if(
30.4057) return PutPlayerInVehicle(playeridheli0);
                   
AttachObjectToVehicle(base0, -1.350097, -0.400024, -0.500000270.0180.0180.0);
                return 
true;
            }
        }
        else
        {
        
SendClientMessage(playerid, -1"  Vocк Nao pode digita esse comando sedo o piloto !");
          }
          return 
1;
      } 
Reply


Messages In This Thread
[DUV Simples] Achar codigo. - by atsbs - 01.12.2011, 18:46
Re: [DUV Simples] Achar codigo. - by Kuddy - 01.12.2011, 18:52
Re: [DUV Simples] Achar codigo. - by atsbs - 01.12.2011, 19:08
Re: [DUV Simples] Achar codigo. - by ViniBorn - 01.12.2011, 19:27
Re: [DUV Simples] Achar codigo. - by atsbs - 01.12.2011, 19:31
Re: [DUV Simples] Achar codigo. - by ViniBorn - 01.12.2011, 19:45
Re: [DUV Simples] Achar codigo. - by atsbs - 01.12.2011, 19:50
Re: [DUV Simples] Achar codigo. - by dPlaYer_ - 01.12.2011, 19:59
Re: [DUV Simples] Achar codigo. - by GabrielDias_Invision - 01.12.2011, 20:05
Re: [DUV Simples] Achar codigo. - by atsbs - 01.12.2011, 20:06

Forum Jump:


Users browsing this thread: 1 Guest(s)