[FilterScript] Duelsystem[zcmd]
#7

You could really save a lot of lines here by creating common functions instead of using two lines for stuff like this.

pawn Code:
GivePlayerWeapon(PID,Duelweap1[PID],2000);
                        GivePlayerWeapon(playerid,Duelweap1[playerid],2000);
                        GivePlayerWeapon(PID,Duelweap2[PID],2000);
                        GivePlayerWeapon(playerid,Duelweap2[playerid],2000);
                        TogglePlayerControllable(PID,0);
                        TogglePlayerControllable(playerid,0);
                        SetPlayerArmour(PID,100);
                        SetPlayerHealth(PID,100);
                        SetPlayerArmour(playerid,100);
                        SetPlayerHealth(playerid,100);
Reply


Messages In This Thread
Duelsystem[zcmd] - by Flori - 29.12.2014, 12:56
Re: Duelsystem[zcmd] - by SpikY_ - 29.12.2014, 12:58
Re: Duelsystem[zcmd] - by Younes44 - 29.12.2014, 12:59
Re: Duelsystem[zcmd] - by Pitter - 29.12.2014, 13:15
Re: Duelsystem[zcmd] - by VincenzoDrift - 29.12.2014, 13:24
Re: Duelsystem[zcmd] - by Ryz - 29.12.2014, 13:25
Re: Duelsystem[zcmd] - by Pottus - 29.12.2014, 13:28
AW: Re: Duelsystem[zcmd] - by Flori - 29.12.2014, 13:30
Re: Duelsystem[zcmd] - by Arastair - 29.12.2014, 15:07
Re: Duelsystem[zcmd] - by Bingo - 29.12.2014, 15:08
Re: Duelsystem[zcmd] - by Battlezone - 29.12.2014, 15:34
AW: Duelsystem[zcmd] - by Flori - 29.12.2014, 16:41
Re: Duelsystem[zcmd] - by AgusZ - 29.12.2014, 16:55
AW: Duelsystem[zcmd] - by Flori - 29.12.2014, 18:02
Re: Duelsystem[zcmd] - by JeaSon - 29.12.2014, 18:07
AW: Duelsystem[zcmd] - by Flori - 30.12.2014, 07:34
AW: Duelsystem[zcmd] - by Flori - 30.12.2014, 09:18
Re: Duelsystem[zcmd] - by MattyMatty - 31.12.2014, 01:37
AW: Duelsystem[zcmd] - by Flori - 31.12.2014, 09:09
Re: Duelsystem[zcmd] - by Vizi10 - 07.10.2017, 13:33

Forum Jump:


Users browsing this thread: 1 Guest(s)