[Ajuda] Iniciar Comando
#6

Quote:
Originally Posted by @Riichard
Посмотреть сообщение
Nгo me lembro direito, mas, acho que deve ser assim:
pawn Код:
new
   VeiculoElegy = GetPlayerVehicleID(playerid),
   Dirigindo = GetPlayerState(playerid)
;
   if(Dirigindo == PLAYER_STATE_DRIVER)
   {
       if(VeiculoElegy != 562)
          return SendClientMessage(playerid, -1 ,"[ERRO] Somente Elegy.");
        // Funзao do comando..
   }
Riichard agora ele proibiu todos os veiculos ate o Elegy

Aki esta o Comando

pawn Код:
if (strcmp("/timedrift", cmdtext, true, 10) == 0)
    {
        if(getCheckpointType(playerid)!=TT_START)
        {
            SendClientMessage(playerid,VERMELHO,"{3cff00}[TBD] {FFFFFF}Vocк deve estar no local de partida.");
            return 1;
        }
        new
        VeiculoElegy = GetPlayerVehicleID(playerid),
        Dirigindo = GetPlayerState(playerid)
        ;
        if(Dirigindo == PLAYER_STATE_DRIVER)
        {
        if(VeiculoElegy != 562) return SendClientMessage(playerid, -1 ,"[ERRO] Somente Elegy.");
        if(IsPlayerInAnyVehicle(playerid))
        PutPlayerInVehicle(playerid, 562, 0);
        new String[228];
        new pname[MAX_PLAYER_NAME];
        format(String, sizeof(String), "{3cff00}[TBD]{FFFFFF}Atenзгo Comeзando... {00FF00}%s {FFFFFF}Tenha uma Boa Sorte!", pname);
        SendClientMessage(playerid, -1, String);
        SetCameraBehindPlayer(playerid);
        new Rand = random(1000);
        SetPlayerVirtualWorld(playerid, Rand);
        SetVehicleVirtualWorld(GetPlayerVehicleID(playerid), Rand);
        TogglePlayerControllable(playerid,0);
        Motocountdown[playerid] = 6;
        SetPlayerRaceCheckpoint(playerid,0,racecheckpoints[0][0],racecheckpoints[0][1],racecheckpoints[0][2],racecheckpoints[1][0],racecheckpoints[1][1],racecheckpoints[1][2],10);
        DisablePlayerCheckpoint(playerid);
        }
Reply


Messages In This Thread
Iniciar Comando - by TheKoDaK - 26.07.2013, 20:26
Respuesta: Iniciar Comando - by ViniKuliveguisky - 26.07.2013, 20:31
Re : Iniciar Comando - by ThiagoMK - 26.07.2013, 20:32
Re: Iniciar Comando - by @Riichard - 26.07.2013, 20:33
Re: Respuesta: Iniciar Comando - by TheKoDaK - 26.07.2013, 20:34
Re: Iniciar Comando - by TheKoDaK - 26.07.2013, 20:37
Re: Iniciar Comando - by PT - 26.07.2013, 23:32

Forum Jump:


Users browsing this thread: 2 Guest(s)