Advertisement
Guest User

Indi Corzzo

a guest
Jan 21st, 2010
824
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.76 KB | None | 0 0
  1. // This is a comment
  2. // uncomment the line below if you want to write a filterscript
  3. //#define FILTERSCRIPT
  4.  
  5. #include <a_samp>
  6.  
  7. #if defined FILTERSCRIPT
  8.  
  9. public OnFilterScriptInit()
  10. {
  11.  
  12.     print("Filterscript loaded");
  13.  
  14.     return 1;
  15. }
  16.  
  17. public OnFilterScriptExit()
  18. {
  19.  
  20.     return 1;
  21. }
  22.  
  23. #else
  24.  
  25.  
  26.  
  27. #endif
  28.  
  29.  
  30. public OnPlayerCommandText(playerid, cmdtext[])
  31. {
  32.     if (strcmp("/smoke", cmdtext, true, 10) == 0)
  33.     {
  34.     SetPlayerDrunkLevel(playerid, 50000);
  35.     SetPlayerWeather(playerid, 209);
  36.     SetPlayerSpecialAction(playerid, SPECIAL_ACTION_SMOKE_CIGGY);
  37.         // Do something here
  38.     return 1;
  39.     }
  40.     if (strcmp("/throwaway", cmdtext, true, 10) == 0)
  41.     SetPlayerDrunkLevel(playerid, 0);
  42.     SetPlayerWeather(playerid, 1);
  43.     ClearAnimations(playerid);
  44.     return 0;
  45. }
  46.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement