[Pedido] Corrida 1 x 1.
#6

Quote:
Originally Posted by Fel486
Посмотреть сообщение
PHP код:
public OnPlayerStateChange(playeridnewstateoldstate)
{
   if(
NaCorrida[playerid] == true)
   {
      if(
oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER)
      {
             
NaCorrida[playerid] = false;
             for(new 
0MAX_PLAYERSi++)
             {
                  if(
IsPlayerConnected(i))
                  {
                      if(
IdCorrida[playerid] == IdCorrida[i])
                      {
                          
NaCorrida[i] = false;
                          
IdCorrida[playerid] = 0;
                          
IdCorrida[i] = 0;
                          
SendClientMessage(playerid0x33CCFFAA"Corrida cancelada.");
                          
SendClientMessage(i0x33CCFFAA"Corrida cancelada.");
                          break;
                    }
                }
            }
        }
    }
   return 
1;

@EDIT
Resolvido, eu tinha entendi errado. Obrigado novamente.
Reply


Messages In This Thread
Corrida 1 x 1. - by Ley - 24.04.2014, 00:18
Re: Corrida 1 x 1. - by rjjj - 24.04.2014, 01:43
Re: Corrida 1 x 1. - by Fel486 - 24.04.2014, 01:50
Re: Corrida 1 x 1. - by Ley - 24.04.2014, 04:25
Re: Corrida 1 x 1. - by Fel486 - 24.04.2014, 04:33
Re: Corrida 1 x 1. - by Ley - 24.04.2014, 05:09

Forum Jump:


Users browsing this thread: 1 Guest(s)