[FilterScript] DeathMatch Event [Friendly, Funny, Controllable]
#9

PHP код:
if(weapon || weapon 46) return SCM(playerid,-1,"{f00f00}[ERROR]: {F00f00}Invalid WeaponID"); 
Also id between 19 & 21 are invalid:
PHP код:
IsValidWeapon(weaponid)
    return (
<= weaponid <= 46) && !(19 <= weaponid <= 21) ? true false
PHP код:
      SetPlayerArmour(playerid100);
       
SetPlayerHealth(playerid100); 
It's better to write 100.0 since the parameter is a float. I know it's not very important but it's better to take a good habit.

PHP код:
new InEvent[MAX_PLAYERS]; //Checking player if he is in/out event.
new EventOpened[MAX_PLAYERS]; //Checking if Event is opened to join it. 
This can be declared as a boolean and used as such.
Also declaring variables like this is more clear (it's my own opinion)
PHP код:
new
    
FirstVariable,
    
SecondVariable,
    
LastVariable
Reply


Messages In This Thread
DeathMatch Event [Friendly, Funny, Controllable] - by RxErT - 17.05.2017, 10:54
Re: DeathMatch Event [Friendly, Funny, Controllable] - by Infinity - 17.05.2017, 11:06
Re: DeathMatch Event [Friendly, Funny, Controllable] - by RxErT - 17.05.2017, 11:08
Re: DeathMatch Event [Friendly, Funny, Controllable] - by coool - 17.05.2017, 11:14
Re: DeathMatch Event [Friendly, Funny, Controllable] - by RxErT - 17.05.2017, 11:22
Re: DeathMatch Event [Friendly, Funny, Controllable] - by Infinity - 17.05.2017, 11:22
Re: DeathMatch Event [Friendly, Funny, Controllable] - by coool - 17.05.2017, 11:32
Re: DeathMatch Event [Friendly, Funny, Controllable] - by RxErT - 17.05.2017, 11:52
Re: DeathMatch Event [Friendly, Funny, Controllable] - by Dayrion - 17.05.2017, 17:06
Re: DeathMatch Event [Friendly, Funny, Controllable] - by JustMe.77 - 17.05.2017, 18:13
Re: DeathMatch Event [Friendly, Funny, Controllable] - by RxErT - 17.05.2017, 18:41
Re: DeathMatch Event [Friendly, Funny, Controllable] - by RxErT - 18.05.2017, 08:24
Re: DeathMatch Event [Friendly, Funny, Controllable] - by Infinity - 18.05.2017, 08:32
Re: DeathMatch Event [Friendly, Funny, Controllable] - by SyS - 18.05.2017, 08:34
Re: DeathMatch Event [Friendly, Funny, Controllable] - by RxErT - 18.05.2017, 08:50
Re: DeathMatch Event [Friendly, Funny, Controllable] - by Dayrion - 18.05.2017, 12:13
Re: DeathMatch Event [Friendly, Funny, Controllable] - by RxErT - 18.05.2017, 19:47
Re: DeathMatch Event [Friendly, Funny, Controllable] - by Dayrion - 18.05.2017, 21:43
Re: DeathMatch Event [Friendly, Funny, Controllable] - by RxErT - 19.05.2017, 06:27
Re: DeathMatch Event [Friendly, Funny, Controllable] - by XxMadmanxX - 21.05.2017, 21:28
Re: DeathMatch Event [Friendly, Funny, Controllable] - by RxErT - 22.05.2017, 12:08
Re: DeathMatch Event [Friendly, Funny, Controllable] - by RxErT - 24.02.2018, 12:45

Forum Jump:


Users browsing this thread: 6 Guest(s)