[Ajuda] Comando dentro do Checkpoint
#1

Como eu faзo para que o player entre dentro de um checkpoint e abra um dialog ?!
Mas sendo que o gm que peguei como base ja contem CPS adc nele .
Reply
#2

pawn Код:
onplayerentercheckpoint

if(checkid == id do checkpoint)
{
ShowPlayerDialog....
}
Reply
#3

Quote:
Originally Posted by hard_dalzot
Посмотреть сообщение
pawn Код:
onplayerentercheckpoint

if(checkid == id do checkpoint)
{
ShowPlayerDialog....
}
o id do checkpoint seria o nome que eu defini ele ?!
PHP код:
OnGameModeInit()
Ammu CPS_AddCheckpoint(296.567993,-38.249015,1001.5156251.040); 
PHP код:
OnPlayerEnterCheckpoint(playerid)
if(
checkid == Ammu)
{
ShowPlayerDialog(playerid,Ammu,DIALOG_STYLE_LIST,"AmmuNation","Colete e Vida\nArmas\n","Selecionar""Cancelar");

ficaria assim ?
Reply
#4

Sim!
Reply
#5

Quote:
Originally Posted by Cleyson
Посмотреть сообщение
Sim!
Hm mas quando eu entro dentro do checkpoint ele nao responde , nao abre a dialog sabe me dizer porque ?
Reply
#6

Desculpa li rбpido..



PHP код:
public OnPlayerEnterCheckpoint(playerid)
{
    new 
checknome CPS_GetPlayerCheckpoint(playerid);
    if(
checknome == Ammu)
    {
        
ShowPlayerDialog(playerid,Ammu,DIALOG_STYLE_LIST,"AmmuNation","Colete e Vida\nArmas\n","Selecionar""Cancelar");
    }
    return 
1;

Reply
#7

Quote:
Originally Posted by Cleyson
Посмотреть сообщение
Desculpa li rбpido..



PHP код:
public OnPlayerEnterCheckpoint(playerid)
{
    new 
checknome CPS_GetPlayerCheckpoint(playerid);
    if(
checknome == Ammu)
    {
        
ShowPlayerDialog(playerid,Ammu,DIALOG_STYLE_LIST,"AmmuNation","Colete e Vida\nArmas\n","Selecionar""Cancelar");
    }
    return 
1;

nao deu . ele nao responde :/
Reply
#8

Quote:
Originally Posted by Cleyson
Посмотреть сообщение
Desculpa li rбpido..



PHP код:
public OnPlayerEnterCheckpoint(playerid)
{
    new 
checknome CPS_GetPlayerCheckpoint(playerid);
    if(
checknome == Ammu)
    {
        
ShowPlayerDialog(playerid,Ammu,DIALOG_STYLE_LIST,"AmmuNation","Colete e Vida\nArmas\n","Selecionar""Cancelar");
    }
    return 
1;

e responde uma coisa '-' pq usou
PHP код:
new checknome CPS_GetPlayerCheckpoint(playerid); 
Reply
#9

Quote:
Originally Posted by Cleyson
Посмотреть сообщение
Desculpa li rбpido..



PHP код:
public OnPlayerEnterCheckpoint(playerid)
{
    new 
checknome CPS_GetPlayerCheckpoint(playerid);
    if(
checknome == Ammu)
    {
        
ShowPlayerDialog(playerid,Ammu,DIALOG_STYLE_LIST,"AmmuNation","Colete e Vida\nArmas\n","Selecionar""Cancelar");
    }
    return 
1;

Agora eu entndi sua explicaзao muito obrigado +rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)