[ajuda] GPS
#1

Eae Galera, Tipo estou fazneod um /gps em dialog, mais daew eu faзo os chakpoint Os dialogs eo cmd.... In-game eu dou /gps e o dialog do gps abre tudo certin, mais daew a hora q eu escolho uma opзao n aparece o chekpoint para ir.... e nem aparece mensagens Dizendo "Voce chegou ao Morro"

Sistema do GPS:
pawn Код:
if(IsPlayerConnected(playerid))
        {
        if (strcmp("/gps", cmdtext, true, 10) == 0)
        {
        ShowPlayerDialog(playerid,2,DIALOG_STYLE_LIST, "GPS ", "Morro", "Selecionar", "Cancelar");
        return 1;
        }
        }
Chakpoint
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
if(PlayerToPoint(8.0,playerid,2164.6309,-1002.4444,62.7952))//Morro
{
DisablePlayerCheckpoint(playerid);
GameTextForPlayer(playerid, " ~p~Voce chegou ao Morro ", 5000, 3);
}
dialog
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 1)
{
if(response)
{
if(listitem == 0) // Morro
{
SetPlayerCheckpoint(playerid, 2164.6309,-1002.4444,62.7952,8.0);
}

}
}
}
Agradeзo desde jб quem me ajudar
Reply


Messages In This Thread
[ajuda] GPS - by gabriel_ - 27.01.2011, 10:34
Re: [ajuda] GPS - by -iLusioN- - 27.01.2011, 10:37
Re: [ajuda] GPS - by gabriel_ - 27.01.2011, 10:55
Re: [ajuda] GPS - by Falcon. - 27.01.2011, 12:41
Re: [ajuda] GPS - by gabriel_ - 27.01.2011, 14:52

Forum Jump:


Users browsing this thread: 2 Guest(s)