Como Criar Tabela ? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Como Criar Tabela ? (
/showthread.php?tid=629864)
Como Criar Tabela ? -
Fault - 05.03.2017
queria criar uma tabela ao passar encima do checkpoint ela abre
Re: Como Criar Tabela ? -
JessThompson - 05.03.2017
ENGLISH:
Hello you would need to use onplayerentercheckpoint and when that player then enters the check point you are going to want to provide the dialog and disabletheplayerscheckpoint
PORTUGUESE:
Olб, vocк precisaria usar onplayerentercheckpoint e quando esse jogador entra no ponto de verificaзгo que vocк vai querer fornecer a caixa de diбlogo e disabletheplayerscheckpoint
https://sampwiki.blast.hk/wiki/OnPlayerEnterCheckpoint
https://sampwiki.blast.hk/wiki/ShowPlayerDialog
Also because I'm nice I don't you alittle example!
Код:
new PlayerCheckPontOne[MAX_PLAYERS];
CMD:ShowMeTheWay(playerid, params[])
{
PlayerCheckPontOne[playerid] = 1;
SetPlayerCheckpoint(playerid, COORDX, COORDY, COORDZ, 3.0);
return true;
}
public OnPlayerEnterCheckpoint(playerid)
{
if(PlayerCheckPontOne[playerid] == 1)
{
DisablePlayerCheckpoint(playerid);
ShowPlayerDialog(playerid, dialogid, DIALOG_STYLE_MSGBOX, "Congrats", "You can follow directions!", "OK", "OK");
return 1;
}
return 1;
}
Re: Como Criar Tabela ? -
Fault - 05.03.2017
funcionou