Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Cop Equipment Filterscript by I_LOVE_LINS");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(strcmp(cmdtext,"/schild",true) ==0)
- {
- if(IsPlayerAttachedObjectSlotUsed(playerid,1))
- {
- RemovePlayerAttachedObject(playerid,1);
- }
- else
- {
- SetPlayerAttachedObject(playerid,1, 18637, 4, 0.3, 0, 0, 0, 170, 270, 1, 1, 1);
- }
- return 1;
- }
- if(strcmp(cmdtext,"/light",true) ==0)
- {
- if(IsPlayerAttachedObjectSlotUsed(playerid,2))
- {
- RemovePlayerAttachedObject(playerid,2);
- }
- else
- {
- SetPlayerAttachedObject(playerid, 2,18641, 5, 0.1, 0.02, -0.05, 0, 0, 0, 1, 1, 1);
- }
- return 1;
- }
- if(strcmp(cmdtext,"/armor",true) ==0)
- {
- if(IsPlayerAttachedObjectSlotUsed(playerid,3))
- {
- RemovePlayerAttachedObject(playerid,3);
- RemovePlayerAttachedObject(playerid,4);
- }
- else
- {
- SetPlayerAttachedObject(playerid,3,19142,1,0.1,0.05,0.0,0.0,0.0,0.0);
- SetPlayerAttachedObject(playerid,4,19141,2,0.11,0.0,0.0,0.0,0.0,0.0);
- }
- return 1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement