Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <zcmd>
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Drinks BY BlackHorse");
- print("--------------------------------------\n");
- return 1;
- }
- CMD:drinks(playerid,params[])
- {
- ShowPlayerDialog(playerid, 456, DIALOG_STYLE_LIST, "DRINKS", "DrunkOff Your drink will off,nothing happen & screen can't move\nSlow You can see radar and screen move slowly\nMedium You can't see radar but screen move\nFast You can't see radar but screen move fast\nNOTE:Your screen moving slow but depend on FPS\nMost FPS screen moving fast to slow,slow\nFew FPS screen moving fast to slow,fast", ">>CHOOSE<<", ">>CANCEL<<");
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == 456)
- {
- if(response)
- {
- switch(listitem)
- {
- case 0:
- {
- SetPlayerDrunkLevel(playerid, 0);
- }
- case 1:
- {
- SetPlayerDrunkLevel(playerid, 4000);
- }
- case 2:
- {
- SetPlayerDrunkLevel(playerid, 25000);
- }
- case 3:
- {
- SetPlayerDrunkLevel(playerid, 50000);
- }
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement