Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- //////////////////////////////
- //////////CopTools////////////
- //////////by Geso/////////////
- //////////////////////////////
- Link: http://forum.sa-mp.com/showthread.php?t=197305
- */
- #include "a_samp"
- #include "zcmd"
- #define SCM SendClientMessage
- #define ZUTA 0xFFFF00FF
- forward RemoveItems(playerid);
- RemoveItems(playerid)
- {
- if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);
- if(IsPlayerAttachedObjectSlotUsed(playerid,2)) RemovePlayerAttachedObject(playerid,2);
- }
- forward PutRiotShieldOnBack(playerid);
- PutRiotShieldOnBack(playerid)
- {
- if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);
- SetPlayerAttachedObject(playerid, 1 , 18637, 1, 0, -0.1, 0.18, 90, 0, 272, 1, 1, 1);
- }
- forward PutRiotShieldOnArm(playerid);
- PutRiotShieldOnArm(playerid)
- {
- if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);
- SetPlayerAttachedObject(playerid, 1, 18637, 4, 0.3, 0, 0, 0, 170, 270, 1, 1, 1);
- }
- forward GiveFlashLight(playerid);
- GiveFlashLight(playerid)
- {
- if(IsPlayerAttachedObjectSlotUsed(playerid,2)) RemovePlayerAttachedObject(playerid,2);
- SetPlayerAttachedObject(playerid, 2,18641, 5, 0.1, 0.02, -0.05, 0, 0, 0, 1, 1, 1);
- }
- forward GiveTazer(playerid);
- GiveTazer(playerid)
- {
- if(IsPlayerAttachedObjectSlotUsed(playerid,2)) RemovePlayerAttachedObject(playerid,2);
- SetPlayerAttachedObject(playerid, 2,18642, 5, 0.12, 0.02, -0.05, 0, 0, 45,1,1,1);
- }
- CMD:arm(playerid, params[])
- {
- PutRiotShieldOnArm(playerid); SCM(playerid, ZUTA,"Stavio si stit.");
- return 1;
- }
- CMD:back(playerid, params[])
- {
- PutRiotShieldOnBack(playerid); SCM(playerid, ZUTA,"Stavio si stit na ledja.");
- return 1;
- }
- CMD:light(playerid, params[])
- {
- GiveFlashLight(playerid); SCM(playerid, ZUTA,"Uzeo si svjetiljku.");
- return 1;
- }
- CMD:tazer(playerid, params[])
- {
- GiveTazer(playerid); SCM(playerid, ZUTA,"Uzeo si Tazer/Soker.");
- return 1;
- }
- CMD:removeitems(playerid, params[])
- {
- RemoveItems(playerid); SCM(playerid, ZUTA,"Skinuo si opremu!");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment