[Ajuda] Como setar profissao ao entrar Checkpoint?
#5

Usa o plugin streamer pra isso, vou te dar um EXEMPLO:

PHP код:
#include streamer

new check_motorista;

public 
OnGameModeInit()
{
    
check_motorista CreateDynamicCP(PosXPosYPosZ2, -1, -1, -1100.0);
    return 
1;
}

public 
OnPlayerEnterDynamicCP(playeridcheckpointid)
{
    if(
checkpointid == check_motorista)
    {
        
SendClientMessage(playerid, -1"Digite /sermotorista para pegar a profissгo.");
    }
    return 
1;
}

public 
OnPlayerCommandText(playeridcmdtext[])
{
    if(
strcmp("/sermotorista"cmdtexttrue10) == 0)
    {
         if(!
PlayerToPoint(2.0playeridPosXPosYPosZ)) return SendClientMessage(playerid, -1"Vocк nгo pode utilizar este comando aqui!");
        
// funзoes
        
return 1;
    }
    return 
0;
}

// Altere as cordenadas 
Reply


Messages In This Thread
Como setar profissao ao entrar Checkpoint? - by TheM4st3r - 01.05.2015, 17:38
Re: Como setar profissao ao entrar Checkpoint? - by GabrielDias_Invision - 01.05.2015, 18:14
Re: Como setar profissao ao entrar Checkpoint? - by TheM4st3r - 01.05.2015, 18:49
Re: Como setar profissao ao entrar Checkpoint? - by viniciuship - 01.05.2015, 19:12
Re: Como setar profissao ao entrar Checkpoint? - by Cleyson - 01.05.2015, 20:44

Forum Jump:


Users browsing this thread: 2 Guest(s)