Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // This is a comment
- // uncomment the line below if you want to write a filterscript
- //#define FILTERSCRIPT
- #include <a_samp>
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("Filterscript loaded");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- #endif
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/smoke", cmdtext, true, 10) == 0)
- {
- SetPlayerDrunkLevel(playerid, 50000);
- SetPlayerWeather(playerid, 209);
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_SMOKE_CIGGY);
- // Do something here
- return 1;
- }
- if (strcmp("/throwaway", cmdtext, true, 10) == 0)
- SetPlayerDrunkLevel(playerid, 0);
- SetPlayerWeather(playerid, 1);
- ClearAnimations(playerid);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement