29.09.2012, 22:53
pawn Код:
#include <a_samp>
#define FILTERSCRIPT
#define DIALOG_GPS 1000
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/gps", true))
{
ShowPlayerDialog(playerid, DIALOG_GPS, DIALOG_STYLE_LIST, "GPS", "Prefeitura \nDepartamento de Polнcia", "Selecionar", "Fechar");
return 1;
}
return 0;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_GPS)
{
if(response)
{
switch(listitem)
{
case 0:
{
SetPlayerCheckpoint(playerid, 1467.7356, -1767.4352, 13.5469, 3.0);
}
case 1:
{
SetPlayerCheckpoint(playerid, 1540.0187, -1678.8928, 13.5498, 3.0);
}
}
}
}
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
DisablePlayerCheckpoint(playerid);
return 1;
}

