20.04.2011, 14:06
So i got some code that works but it needs a timer to be successful so to speak
So heres the code, im not too sure on timers and i do not understand the wiki page about timers to well
heres the bit of code i need a timer around any help? and if so do you know hwo to put a timer globally so it times every single function etc in the script?
So heres the code, im not too sure on timers and i do not understand the wiki page about timers to well
heres the bit of code i need a timer around any help? and if so do you know hwo to put a timer globally so it times every single function etc in the script?
Quote:
public OnPlayerDeath(playerid, killerid, reason) { if(GetPlayerWeapon(killerid) == 36) { BanEx(killerid, "Weapon Hacks: Rocket Launcher"); } if(GetPlayerWeapon(killerid) == 3 { BanEx(killerid, "Weapon Hacks: MiniGun"); } if(GetPlayerWeapon(killerid) == 39) { BanEx(killerid, "Weapon Hacks: Satchel"); } if(GetPlayerWeapon(killerid) == 40) { BanEx(killerid, "Weapon Hacks: Detonator"); } if(GetPlayerWeapon(killerid) == 37) { BanEx(killerid, "Weapon Hacks: Flamethrower"); } if(GetPlayerWeapon(killerid) == 16) { BanEx(killerid, "Weapon Hacks: Grenade"); } if(GetPlayerWeapon(killerid) == 4) { BanEx(killerid, "Weapon Hacks: Knife"); } if(GetPlayerWeapon(killerid) == 17) { BanEx(killerid, "Weapon Hacks: TearGas"); } if(GetPlayerWeapon(killerid) == 7) { BanEx(killerid, "Weapon Hacks"); } if(GetPlayerWeapon(killerid) == 15) { BanEx(killerid, "Weapon Hacks"); } if(GetPlayerWeapon(killerid) == 42) { BanEx(killerid, "Weapon Hacks"); } return 1; } |