
MakeMeDrunk backup
By: a guest on
Aug 2nd, 2012 | syntax:
PAWN | size: 2.01 KB | hits: 15 | expires: Never
#include <a_samp>
#define FILTERSCRIPT
#define blue 0x375FFFFF
#define red 0xAA3333AA
public OnFilterScriptInIt()
{
print("/n-------------------------------");
print(" NoahF's useful FilterScript has loaded successfully."); //Shows a message in Samp-Server.exe saying the FilterScript has loaded successfully.
print("-------------------------------/n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
new pName[24];
new str[128];
if(!strcmp(cmdtext, "/makemedrunk", true, 12)) //The command that turns on the drunk effects.
{
SetPlayerDrunkLevel (playerid, 50000);
GetPlayerName(playerid, pName, 24);
format(str, 128, "%s Has made themselves drunk with the /makemedrunk command! Be careful not to drink and drive a vehicle or it may result in an accident!");
SendClientMessage(playerid, blue, "You have made yourself drunk! Don't drink and drive ;)");
SendClientMessage(playerid, blue, "If you want to turn off the drunk effects, just type /notdrunk!");
SendClientMessageToAll(red, str);
return 1;
}
if(!strcmp(cmdtext, "/notdrunk", true, 9)) //The command that turns off the drunk effects.
{
SetPlayerDrunkLevel (playerid, 0);
SendClientMessage(playerid, blue, "You have turned off the drunk effects! It is now safe to drive.");
SendClientMessageToAll(red, str);
return 1;
}
return 0;
}
/*
-----------------------------------------CREDITS----------------------------------------
MakeMeDrunk FilterScript scripted/created by Noah Fallon (NoahF) on 7/31/12.
Please do not remove these credits.
Changing things are allowed but when you do please post the newly modified code in a reply to my SA-MP Forums topic on this FS.
Thanks for using ;)
Also, don't be afraid to put some constructive criticism in a reply to the topic! This is my first FS and I would like to know how I can improve on future scripts. :)
-----------------------------------------END OF CREDITS---------------------------------
*/