01.02.2014, 06:16
Hello All This Is My First Filterscript.
I've made a simple vehicle boost, repair, and horn jump.
Code's Below
So that's it, only that.
Thank for look at my first filterscript
Good luck.
I've made a simple vehicle boost, repair, and horn jump.
Code's Below
Код:
//========== Vehicle Repair Filterscript By Symphony's ==========// //========== Super Boost Filterscript By Symphony's ==========// //========== Super Horn Jump Filterscript By Symphony's ==========// //========== Credits : Symphony's For Make The Filterscript ==========// #include <a_samp> #if defined FILTERSCRIPT public OnFilterScriptInit() { print("\n--------------------------------------"); print(" Vehicle Repair filterscript By Symphony's"); print(" Speedboost filterscript By Symphony's"); print(" Horn Jump filterscript By Symphony's"); print("--------------------------------------\n"); return 1; } public OnFilterScriptExit() { return 1; } #endif public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if(newkeys & KEY_SUBMISSION) { if (IsPlayerInAnyVehicle(playerid)){ { RepairVehicle(GetPlayerVehicleID(playerid)); SetVehicleHealth(GetPlayerVehicleID(playerid),1000.0); } } } if(newkeys & KEY_FIRE) { if (IsPlayerInAnyVehicle(playerid)){ { new Float:vx, Float:vy, Float:vz; AddVehicleComponent(GetPlayerVehicleID(playerid), 1010); GetVehicleVelocity(GetPlayerVehicleID(playerid), vx, vy, vz); SetVehicleVelocity(GetPlayerVehicleID(playerid) ,vx * 1.5,vy * 1.5 ,vz * 1.5); } } } if(newkeys & KEY_CROUCH) { if (IsPlayerInAnyVehicle(playerid)){ { new Float:x, Float:y, Float:z; GetVehicleVelocity(GetPlayerVehicleID(playerid), x, y, z); SetVehicleVelocity(GetPlayerVehicleID(playerid) ,x ,y ,z+0.5); } } } return 1; }
Thank for look at my first filterscript
Good luck.