Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Hello, this is Donicans please leave the credits if possible if not possible you can change it.
- // Who am I? a player at a server named Cisco City Roleplay based in Fort Carson.
- //I released this script to show my scripting skills.
- // For more scripting jobs just forum pm me at Donicans.
- // I do charge for professional and hard scripting such as I did to Mark Shade.
- // Most of all, enjoy this script.
- //#define FILTERSCRIPT
- #include <a_samp>
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Weapon Damage Script By Donicans - CISCO CITY RP FORMAL PLAYER");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print(" Weapon Damage Script By Donicans");
- print("----------------------------------\n");
- }
- #endif
- public OnGameModeInit()
- {
- // Don't use these lines if it's a filterscript
- return 1;
- }
- public OnGameModeExit()
- {
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- return 1;
- }
- public OnVehicleSpawn(vehicleid)
- {
- return 1;
- }
- public OnVehicleDeath(vehicleid, killerid)
- {
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- return 1;
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- return 1;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- return 1;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- return 1;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerEnterRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnRconCommand(cmd[])
- {
- return 1;
- }
- public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
- {
- if(issuerid != INVALID_PLAYER_ID)
- {
- new Float:health;
- GetPlayerHealth(playerid, health);
- if(weaponid == 7)
- SetPlayerHealth(playerid,health-12);
- if(weaponid == 8)
- SetPlayerHealth(playerid,health-90);
- if(weaponid == 4)
- SetPlayerHealth(playerid,health-78);
- if(weaponid == 3)
- SetPlayerHealth(playerid,health-11);
- if(weaponid == 5)
- SetPlayerHealth(playerid,health-11);
- if(weaponid == 23)
- SetPlayerHealth(playerid,health-53);
- if(weaponid == 24)
- SetPlayerHealth(playerid,health-90);
- if(weaponid == 22)
- SetPlayerHealth(playerid,health-39);
- if(weaponid == 25)
- SetPlayerHealth(playerid,health-65);
- if(weaponid == 26)
- SetPlayerHealth(playerid,health-48);
- if(weaponid == 27)
- SetPlayerHealth(playerid,health-32);
- if(weaponid == 28)
- SetPlayerHealth(playerid,health-28);
- if(weaponid == 29)
- SetPlayerHealth(playerid,health-31);
- if(weaponid == 30)
- SetPlayerHealth(playerid,health-41);
- if(weaponid == 31)
- SetPlayerHealth(playerid,health-41);
- if(weaponid == 32)
- SetPlayerHealth(playerid,health-27);
- if(weaponid == 33)
- SetPlayerHealth(playerid,health-97);
- if(weaponid == 34)
- SetPlayerHealth(playerid,health-213);
- if(weaponid == 33)
- SetPlayerHealth(playerid,health-97);
- if(weaponid == 33) SetPlayerHealth(playerid,health-97);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement