27.01.2011, 10:34
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:
Chakpoint
dialog
Agradeзo desde jб quem me ajudar
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;
}
}
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);
}
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);
}
}
}
}
