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
- #define COLOR_PURPLE 0xB462F6F6
- #define COLOR_BLUE 0x2641FEAA
- #pragma tabsize 0
- #include <a_samp>
- #include <OPSP>
- new Vatazer = 0;
- #if defined FILTERSCRIPT
- /*public OnFilterScriptInit()
- {
- return 1;
- }*/
- /*public OnFilterScriptExit()
- {
- return 1;
- }*/
- public OnPlayerShootPlayer(Shooter,Target,Float:HealthLost,Float:ArmourLost)
- {
- if(Vatazer == 1)
- {
- if(GetPlayerWeapon(Shooter) == 0)
- {
- ApplyAnimation(Target, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
- SendClientMessage(Target, COLOR_BLUE,"Vous avez été tazer");
- }
- }
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(strcmp(cmdtext, "/tazer", true) ==0 || strcmp(cmdtext, "/ta", true) ==0)
- {
- if(IsPlayerConnected(playerid))
- {
- //if(gTeam[playerid] == 2 || IsACop(playerid))
- //{
- //if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
- //{
- SetPlayerAttachedObject(playerid,1,18642,5,0.053999,0.029000,-0.039999,0.000000,0.000000,0.000000,1.000000,1.000000,1.000000);
- SendClientMessage(playerid, COLOR_BLUE, "Vous avez sorti votre tazer");
- Vatazer = 1;
- return 1;
- //}
- //}
- }
- }
- if(strcmp(cmdtext, "/etazer", true) == 0)
- {
- RemovePlayerAttachedObject(playerid, 1);
- SendClientMessage(playerid, COLOR_BLUE, "Vous avez rangé votre tazer");
- Vatazer = 0;
- return 1;
- }
- return 1;
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment