02.06.2012, 07:09
pawn Код:
#include <a_samp>
#pragma tabsize 0
#define DIALOG_RULES 2
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");
#else
#endif
public OnPlayerCommandText(playerid, cmdtext[]) {
if (strcmp("/rules", cmdtext, true, 10) == 0) {
ShowPlayerDialog(playerid, DIALOG_RULES, DIALOG_STYLE_MSGBOX, "Rules", "1.Do Not Ask for Admin, It Decreases Your Chances.\n2.Do not Spawnkill, it Can get you to Ban.\n3.Do not Abuse any Bug, It Can cause you Temp-Ban.\n4.Do not Advertise any Server Here\n5.Last, Enjoy here !", "Accept", "Decline");
return 1;
}
return 0;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) {
if(response) {
switch(2) {
case 1:
{
if(response) {
SendClientMessage(playerid, -1, "You accepted the rules");
return 1;
}
else if(!response) {
Kick(playerid);
return 1;
}
switch(listitem) {
case 0:
{
}
case 1:
{
}
}
}
}
}
return 1;
}

