Advertisement
Guest User

Untitled

a guest
Oct 8th, 2011
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.34 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3.  
  4. public OnFilterScriptInit()
  5. {
  6.     print("\n--------------------------------------");
  7.     print(" Cop Equipment Filterscript by I_LOVE_LINS");
  8.     print("--------------------------------------\n");
  9.     return 1;
  10. }
  11.  
  12. public OnFilterScriptExit()
  13. {
  14.     return 1;
  15. }
  16.  
  17. public OnPlayerCommandText(playerid, cmdtext[])
  18. {
  19.         if(strcmp(cmdtext,"/schild",true) ==0)
  20.         {
  21.             if(IsPlayerAttachedObjectSlotUsed(playerid,1))
  22.             {
  23.                 RemovePlayerAttachedObject(playerid,1);
  24.             }
  25.             else
  26.             {
  27.                 SetPlayerAttachedObject(playerid,1, 18637, 4, 0.3, 0, 0, 0, 170, 270, 1, 1, 1);
  28.             }
  29.             return 1;
  30.         }
  31.         if(strcmp(cmdtext,"/light",true) ==0)
  32.         {
  33.             if(IsPlayerAttachedObjectSlotUsed(playerid,2))
  34.             {
  35.                 RemovePlayerAttachedObject(playerid,2);
  36.             }
  37.             else
  38.             {
  39.                 SetPlayerAttachedObject(playerid, 2,18641, 5, 0.1, 0.02, -0.05, 0, 0, 0, 1, 1, 1);
  40.             }
  41.             return 1;
  42.         }
  43.         if(strcmp(cmdtext,"/armor",true) ==0)
  44.         {
  45.             if(IsPlayerAttachedObjectSlotUsed(playerid,3))
  46.             {
  47.                 RemovePlayerAttachedObject(playerid,3);
  48.                 RemovePlayerAttachedObject(playerid,4);
  49.             }
  50.             else
  51.             {
  52.                 SetPlayerAttachedObject(playerid,3,19142,1,0.1,0.05,0.0,0.0,0.0,0.0);
  53.                 SetPlayerAttachedObject(playerid,4,19141,2,0.11,0.0,0.0,0.0,0.0,0.0);
  54.             }
  55.             return 1;
  56.         }
  57.         return 0;
  58. }
  59.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement