[Ajuda] Ajuda com Checkpoint
#1

Код:
#include <a_samp>
#include <cpstream>

new assalto;

public OnGameModeInit()
{
    assalto = CPS_AddCheckpoint(153.1188,-64.5729,1.5781,2.0,100);
	return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
    if(CPS_IsPlayerInCheckpoint(playerid,assalto))
    {
        SendClientMessage(playerid,0x008040AA,"Inicio de um assalto!");
        ShowPlayerDialog(playerid, 430, DIALOG_STYLE_MSGBOX,"Assalto", "Deseja fazer um assalto?", "Sim","Nao");
        return 1;
    }
	return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 430)
	{
	    if(response)
	    {
            SendClientMessage(playerid, -1, "vб atй o local marcado no mapa.");
            SendClientMessageToAll(-1, "um novo assalto foi iniciado \"/cop\" para detelo!");
		}
        return 1;
	}
	return 1;
}
Bom! funciona tudo direitinho atй CPS_IsPlayerInCheckpoint, aparece "Inicio de um assalto!" e o ShowPlayerDialog, mas quando vai selecionar a opзгo Sim ou Nгo ela nгo manda o comando para OnDialogResponse, q no caso era pra ficar assim: o player responde "sim" e aparecerб SendClientMessage, SendClientMessageToAll.

Jб fiz de tudo.

PS: nгo sei colocar pawn code.
Reply


Messages In This Thread
Ajuda com Checkpoint - by R3C4LL - 12.11.2012, 00:54
Re: Ajuda com Checkpoint - by R3C4LL - 12.11.2012, 01:08
Re: Ajuda com Checkpoint - by Sergiinhonike - 12.11.2012, 01:14
Re: Ajuda com Checkpoint - by R3C4LL - 12.11.2012, 01:18
Re: Ajuda com Checkpoint - by Sergiinhonike - 12.11.2012, 01:23
Re: Ajuda com Checkpoint - by R3C4LL - 12.11.2012, 01:35
Re: Ajuda com Checkpoint - by [Dark]Danny_Uchiha - 12.11.2012, 01:37
Re: Ajuda com Checkpoint - by Sergiinhonike - 12.11.2012, 01:42
Re: Ajuda com Checkpoint - by R3C4LL - 12.11.2012, 01:48
Re: Ajuda com Checkpoint - by Sergiinhonike - 12.11.2012, 01:50

Forum Jump:


Users browsing this thread: 1 Guest(s)