30.09.2013, 13:14
Hello Sa-mp Community Producing my 2nd Filter-Script
I'm Posting My Damage Control system!
I'm Posting My Damage Control system!
Quote:
How to Adjust Damage Of Player SetPlayerHealth(playerid,health-6); //Just Change the Damage Number like 6 to 20 if(weaponid == 1) SetPlayerHealth(playerid,health-20); //and it's Done Just u need to do that and ur Damage will be -20 Health Every Hit if(weaponid == 1) |
Quote:
How to Change Weapon id SetPlayerHealth(playerid,health-6); if(weaponid == 1) //Just Change the number weapon id 1 to any other weapon id like Ex: SetPlayerHealth(playerid,health-35); if(weaponid == 26) //Just Change the Weapon id and Health it will be Done! |
All Weapon id Added in this Filter-Script if u want to change the Decreasing Health just see how I said and u can Change it.
Click Me to Download!
Click Me to Download!
Код:
//Made By NoFeAr adjusting damage System #include <a_samp> #invelude <zcmd> #if defined FILTERSCRIPT public OnFilterScriptInit() { print("\n--------------------------------------"); print("Made By NoFeAr"); print("--------------------------------------\n"); return 1; } public OnFilterScriptExit() { return 1; } #else main() { print("\n----------------------------------"); print("Made by NoFeAr"); print("----------------------------------\n"); } #endif public OnGameModeInit() { // Don't use these lines if it's a filterscript SetGameModeText("Blank Script"); AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); return 1; } public OnGameModeExit() { return 1; } public OnPlayerRequestClass(playerid, classid) { SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746); 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[]) { if (strcmp("/mycommand", cmdtext, true, 10) == 0) { // Do something here return 1; } return 0; } 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 OnPlayerRequestSpawn(playerid) { return 1; } public OnObjectMoved(objectid) { return 1; } public OnPlayerObjectMoved(playerid, objectid) { return 1; } public OnPlayerPickUpPickup(playerid, pickupid) { return 1; } public OnVehicleMod(playerid, vehicleid, componentid) { return 1; } public OnVehiclePaintjob(playerid, vehicleid, paintjobid) { return 1; } public OnVehicleRespray(playerid, vehicleid, color1, color2) { return 1; } public OnPlayerSelectedMenuRow(playerid, row) { return 1; } public OnPlayerExitedMenu(playerid) { return 1; } public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid) { return 1; } public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { return 1; } public OnRconLoginAttempt(ip[], password[], success) { return 1; } public OnPlayerUpdate(playerid) { return 1; } public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid) { if(issuerid != INVALID_PLAYER_ID) { new Float: health; GetPlayerHealth(playerid, health); if(weaponid == 0) SetPlayerHealth(playerid,health-4); if(weaponid == 0) SetPlayerHealth(playerid,health-6); if(weaponid == 1) SetPlayerHealth(playerid,health-5); if(weaponid == 2) SetPlayerHealth(playerid,health-5); if(weaponid == 3) SetPlayerHealth(playerid,health-7); if(weaponid == 4) SetPlayerHealth(playerid,health-5); if(weaponid == 5) SetPlayerHealth(playerid,health-5); if(weaponid == 6) SetPlayerHealth(playerid,health-5); if(weaponid == 7) SetPlayerHealth(playerid,health-8); if(weaponid == 8) SetPlayerHealth(playerid,health-20); if(weaponid == 9) SetPlayerHealth(playerid,health-5); if(weaponid == 10) SetPlayerHealth(playerid,health-5); if(weaponid == 11) SetPlayerHealth(playerid,health-5); if(weaponid == 12) SetPlayerHealth(playerid,health-5); if(weaponid == 13) SetPlayerHealth(playerid,health-5); if(weaponid == 14) SetPlayerHealth(playerid,health-5); if(weaponid == 15) SetPlayerHealth(playerid,health-35); if(weaponid == 16) SetPlayerHealth(playerid,health-4); if(weaponid == 17) SetPlayerHealth(playerid,health-9); if(weaponid == 18) SetPlayerHealth(playerid,health-10); if(weaponid == 22) SetPlayerHealth(playerid,health-10); if(weaponid == 23) SetPlayerHealth(playerid,health-45); if(weaponid == 24) SetPlayerHealth(playerid,health-25); if(weaponid == 25) SetPlayerHealth(playerid,health-30); if(weaponid == 26) SetPlayerHealth(playerid,health-27); if(weaponid == 27) SetPlayerHealth(playerid,health-20); if(weaponid == 28) SetPlayerHealth(playerid,health-20); if(weaponid == 29) SetPlayerHealth(playerid,health-20); if(weaponid == 30) SetPlayerHealth(playerid,health-25); if(weaponid == 31) SetPlayerHealth(playerid,health-20); if(weaponid == 32) SetPlayerHealth(playerid,health-50); if(weaponid == 33) SetPlayerHealth(playerid,health-50); if(weaponid == 34) SetPlayerHealth(playerid,health-80); if(weaponid == 35) SetPlayerHealth(playerid,health-80); if(weaponid == 36) SetPlayerHealth(playerid,health-15); if(weaponid == 37) SetPlayerHealth(playerid,health-99); if(weaponid == 38) SetPlayerHealth(playerid,health-75); if(weaponid == 39) SetPlayerHealth(playerid,health-75); if(weaponid == 40) SetPlayerHealth(playerid,health-5); if(weaponid == 41) SetPlayerHealth(playerid,health-9); if(weaponid == 42) SetPlayerHealth(playerid,health-0); if(weaponid == 43) SetPlayerHealth(playerid,health-0); if(weaponid == 44) SetPlayerHealth(playerid,health-0); if(weaponid == 45) SetPlayerHealth(playerid,health-0); if(weaponid == 46) SetPlayerHealth(playerid,health-300); if(weaponid == 47) SetPlayerHealth(playerid,health-15); if(weaponid == 49) SetPlayerHealth(playerid,health-95); if(weaponid == 50) SetPlayerHealth(playerid,health-80); if(weaponid == 51) SetPlayerHealth(playerid,health-50); if(weaponid == 53) SetPlayerHealth(playerid,health-300); if(weaponid == 54) SetPlayerHealth(playerid,health-0); if(weaponid == 200) SetPlayerHealth(playerid,health-0); if(weaponid == 201) SetPlayerHealth(playerid,health); } return 1; } public OnPlayerStreamIn(playerid, forplayerid) { return 1; } public OnPlayerStreamOut(playerid, forplayerid) { return 1; } public OnVehicleStreamIn(vehicleid, forplayerid) { return 1; } public OnVehicleStreamOut(vehicleid, forplayerid) { return 1; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { return 1; } public OnPlayerClickPlayer(playerid, clickedplayerid, source) { return 1; }
I Hope u Like it!