Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Simple Rules // :)
- * by Kudoz //DO NOT REMOVE CREDITS!
- */
- #include <a_samp>
- #define FILTERSCRIPT
- #define COLOR_RED 0xFF0000FF
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("Simple rules loaded");
- return 1;
- }
- #endif
- public OnPlayerSpawn(playerid)
- {
- ShowPlayerDialog(playerid,2,DIALOG_STYLE_MSGBOX,"Do you accept our rules:","No Hacking\nHacking=BAN\nNo DM\nRespect other players\nDon't Ask For Admin Status","Accept","Decline");
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == 2)
- {
- if(response) return SendClientMessage(playerid, COLOR_RED, "Good boy! You are Welcome to Play in my Server! :) ENJOY"); // If Player Accepted
- else SendClientMessage(playerid, COLOR_RED, "No? Sorry, this server is not for you then. BaiBai."); // If Player Denied
- Kick( playerid );
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment