[Ajuda] Onplayerkeystatechange
#9

Quote:
Originally Posted by HelderPT
View Post
Obrigado a todos.

Sу mais uma dъvida, essa callback 'OnPlayerStateChange'

Й preciso seguir o mesmo esquemma?

PHP Code:
    if(newstate == PLAYER_STATE_DRIVER)
    {
        new 
vidvid GetPlayerVehicleID(playerid);
        if(
vid == vCaminhoneiro[0] || vid == vCaminhoneiro[1] || vid == vCaminhoneiro[2] || vid == vCaminhoneiro[3] || vid == vCaminhoneiro[4] || vid == vCaminhoneiro[5// Caminhхes da Profissгo Caminhoneiro
        
|| vid == vCaminhoneiro[6] || vid == vCaminhoneiro[7] || vid == vCaminhoneiro[8] || vid == vCaminhoneiro[9] || vid == vCaminhoneiro[10])
        {
            if(
PlayerInfo[playerid][pProfissao] != Caminhoneiro)
            { 
                
RemovePlayerFromVehicle(playerid);
            }
        } 
PHP Code:
if(newstate == PLAYER_STATE_DRIVER)
{
     new 
vidvid GetPlayerVehicleID(playerid);
     for(new 
011i++)
          if(
vid == vCaminhoneiro[i] && PlayerInfo[playerid][pProfissao] != Caminhoneiro)
               
RemovePlayerFromVehicle(playerid);

Reply


Messages In This Thread
Onplayerkeystatechange - by HelderPT - 27.04.2020, 20:53
Re: Onplayerkeystatechange - by Ermanhaut - 27.04.2020, 21:00
Re: Onplayerkeystatechange - by mau.tito - 27.04.2020, 21:02
Re: Onplayerkeystatechange - by HelderPT - 27.04.2020, 21:12
Re: Onplayerkeystatechange - by HelderPT - 27.04.2020, 21:35
Re: Onplayerkeystatechange - by RiqueP - 28.04.2020, 02:28
Re: Onplayerkeystatechange - by Vithinn - 28.04.2020, 03:36
Re: Onplayerkeystatechange - by HelderPT - 28.04.2020, 08:37
Re: Onplayerkeystatechange - by MateGPlay - 28.04.2020, 16:48
Re: Onplayerkeystatechange - by Ermanhaut - 29.04.2020, 01:46

Forum Jump:


Users browsing this thread: 3 Guest(s)