Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Simple Rules
- * by allarw
- */
- #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 cheating\nNo DM\nRespect other players\nNo swearing","Accept","Decline");
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == 2) // Dialog ID
- {
- if(response) return SendClientMessage(playerid, COLOR_RED, "Good boy!"); // Accepted rules
- else SendClientMessage(playerid, COLOR_RED, "No? Sorry, this server is not for you then. Cya."); // Declined rules
- Kick( playerid );
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement