Cau prosim opravi mi to nekdo aby mi to fungovalo? dekuji.
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include <a_samp>
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print("welcome dialog od Dominik Rozporka");
print("--------------------------------------\n");
}
public OnFilterScriptExit()
{
print("\n--------------------------------------");
print("Welcome dialog od Dominik Rozporka byl vypnut");
print("--------------------------------------\n");
}
public OnPlayerConnect(playerid)
{
#define DIALOG_RULES 9981
ShowPlayerDialog(playerid, DIALOG_RULES, DIALOG_STYLE_MSGBOX, "Pravidla", "Necheatovat!!!\nvsechny cheaty jsou prisne zakazany a jsou hned trestany banem!!!\n krome parkour modu vsechny parkour mody jsou tu povoleny\nnas web: www.likinggame.8u.cz", "Souhlasim s pravidly", "Nesouhlasim s pravidly");
public OnDialogResponse(playerid, 9981, response, listitem, inputtext[])
{
if(dialogid == DIALOG_RULES)
{
if(response) // If they clicked 'Yes' or pressed enter
{
SendClientMessage(playerid, COLOR_GREEN, "Dekujeme ze souhlasite s pravidily a ze jste prisel na tento server.");
}
else // Pressed ESC or clicked cancel
{
KickWithMessage(playerid, COLOR_RED, "Musite souhlasit s pravidly!!!");
//For info & code of this function please refer to the bottom of this article.
}
return 1; // We handled a dialog, so return 1. Just like OnPlayerCommandText.
}
return 0; // You MUST return 0 here! Just like OnPlayerCommandText.
}
#endif