Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ---------------- CREATED -------------------
- // this filterscript is created by Dutchmen0031
- // this is my first own filterscript
- // DONT LEAVE THE CREDITS PLEASE
- // ---------------- CREATED -------------------
- #define FILTERSCRIPT
- #include <a_samp>
- #include sscanf
- #pragma tabsize 0
- #define DS 16370
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n----------FILTERSCRIPT LOADING----------");
- print(" Litle Command Dialog");
- print(" Created By Dutchmen");
- print("------------LOADED SUCCESFULLY ---------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print(" Filterscript text by your name here");
- print("----------------------------------\n");
- }
- #endif
- public OnPlayerConnect(playerid)
- {
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- return 1;
- }
- public OnVehicleSpawn(vehicleid)
- {
- return 1;
- }
- public OnVehicleDeath(vehicleid, killerid)
- {
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp(cmdtext, "/commands", true)==0)
- ShowPlayerDialog(playerid, 8899, DIALOG_STYLE_LIST, "Commands","Here a list with commmands\nAFK\nBack (from afk)\nkill (myself)\nhelp\nAdmins\nSwitchclass\nWebsite\nRules\nmusic\nHere under a list with anims\nCiggy\nHandsup\nCell on\nCell off\nPiss\nBeer\nWine\nSprunk\nDance 1\nDance 2\nDance 3\nDance 4", "Select", "Close");
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == 8899)
- {
- if(response)
- {
- if(listitem == 0)
- return 0;}
- //here a list with commands
- {
- SendClientMessage(playerid, 0xFFFFFFAA, "You have load the Command succesfully");
- }
- if(listitem == 1)
- //AFK
- {
- new pName[MAX_PLAYER_NAME];
- new Zstring[48];
- GetPlayerName(playerid, pName, sizeof(pName));
- format(Zstring, sizeof(Zstring), "SERVER: %s is now AFK.", pName);
- SendClientMessageToAll(0xFFFFFFAA, Zstring);
- SetPlayerFacingAngle(playerid,0);
- TogglePlayerControllable(playerid, 0);
- }
- if(listitem == 2)
- //Back
- {
- new pName[MAX_PLAYER_NAME];
- new Zstring[48];
- GetPlayerName(playerid, pName, sizeof(pName));
- format(Zstring, sizeof(Zstring), "SERVER: %s has returned", pName);
- SendClientMessageToAll(0xFFFFFFAA, Zstring);
- SetPlayerFacingAngle(playerid, 0);
- TogglePlayerControllable(playerid, 1);
- }
- if(listitem == 3)
- //kill myself
- {
- if(IsPlayerConnected(playerid))
- SetPlayerHealth(playerid, 0);
- SendClientMessage(playerid, 0xFFFFFFAA, "You have now Kill uself");
- }
- if(listitem == 4)
- //Help
- {
- SendClientMessage(playerid,0xFFFFFFAA,"here you own text");
- SendClientMessage(playerid,0xFFFFFFAA,"here you own text");
- SendClientMessage(playerid,0xFFFFFFAA,"here you own text");
- }
- if(listitem == 5)
- //Admins
- {
- SendClientMessage(playerid,0x0000BBAA,"here you own admin");
- SendClientMessage(playerid,0x0000BBAA,"here you own admin");
- SendClientMessage(playerid,0x0000BBAA,"here you own admin");
- SendClientMessage(playerid,0x0000BBAA,"here you own admin");
- }
- if(listitem == 6)
- //switchclass
- {
- ForceClassSelection(playerid);
- SetPlayerHealth(playerid, 0.00);
- }
- if(listitem == 7)
- //website
- {
- SendClientMessage(playerid,0x0000BBAA,"Website: here you own website Name");
- SendClientMessage(playerid,0xFFFFFFAA,"here you own website");
- }
- if(listitem == 8)
- //rules
- {
- SendClientMessage(playerid,0xFF0A00FF,"here you rule1");
- SendClientMessage(playerid,0xFF0A00FF,"here you rule2");
- SendClientMessage(playerid,0xFF0A00FF,"here you rule3");
- SendClientMessage(playerid,0xFF0A00FF,"here you rule4");
- }
- if(listitem == 9)
- //Music (Change this to you favourite music (the number 1062) look on http://wiki.sa-mp.com/wiki/SoundID for samp sound ids
- {
- new Float:X,Float:Y,Float:Z;
- GetPlayerPos(playerid, X, Y, Z);
- PlayerPlaySound(playerid, 1062, X, Y, Z);
- }
- if(listitem == 10)
- //Here under a list with anims
- {
- SendClientMessage(playerid,0xFF0A00FF,"here under some anims");
- }
- if(listitem == 11)
- //Ciggy
- {
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_SMOKE_CIGGY);
- SendClientMessage(playerid, 0xFFFF00AA, "To smoke, use the left mouse buttom.");
- }
- if(listitem == 12)
- //Handsup
- {
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
- SendClientMessage(playerid, 0xFFFF00AA, "Presh enter to stop the annim");
- }
- if(listitem == 13)
- //Celfone on
- {
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USECELLPHONE);
- SendClientMessage(playerid, 0xFFFF00AA, "Use Celloff to do away the celfone");
- }
- if(listitem == 14)
- //Celfone off
- {
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_STOPUSECELLPHONE);
- }
- if(listitem == 15)
- //Piss
- {
- SetPlayerSpecialAction(playerid, 68);
- }
- if(listitem == 16)
- //Beer
- {
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_BEER);
- SendClientMessage(playerid, 0xFFFF00AA, "To Drink, use the left mouse buttom");
- }
- if(listitem == 17)
- //Wine
- {
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_WINE);
- SendClientMessage(playerid, 0xFFFF00AA, "To Drink, use the left mouse buttom");
- }
- if(listitem == 18)
- //Sprunk
- {
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_SPRUNK);
- SendClientMessage(playerid, 0xFFFF00AA, "To Drink, use the left mouse buttom");
- }
- if(listitem == 19)
- //Dance 1
- {
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
- }
- if(listitem == 20)
- //Dance 2
- {
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE2);
- }
- if(listitem == 21)
- //Dance 3
- {
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE3);
- }
- if(listitem == 22)
- //Dance 4
- {
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE4);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement