[Dr.Lozer] Is This Right Code ??
#1

Guyz i made a AntiTeamKill with opsp.inc

Is This Code Is Right Or Wrong ??

Pawn
Код:
public OnPlayerShootPlayer(Shooter,Target,Float:HealthLost,Float:ArmourLost)
{
	new Float:health; GetPlayerHealth(Target, health);
	new Float:armour; GetPlayerArmour(Target, armour);
	if(PlayerInfo[Shooter][Team] == PlayerInfo[Target][Team]) {
	    SetPlayerHealth(Target, health +HealthLost);
	    SetPlayerArmour(Target, armour +ArmourLost);
	}
	return 1;
}
Reply


Messages In This Thread
[Dr.Lozer] Is This Right Code ?? - by dr.lozer - 20.10.2012, 08:12
Re: [Dr.Lozer] Is This Right Code ?? - by newbienoob - 20.10.2012, 08:18
Re: [Dr.Lozer] Is This Right Code ?? - by dr.lozer - 20.10.2012, 08:19
Re: [Dr.Lozer] Is This Right Code ?? - by Simplyfrag - 20.10.2012, 08:22
Re: [Dr.Lozer] Is This Right Code ?? - by mincer - 20.10.2012, 08:24
Re: [Dr.Lozer] Is This Right Code ?? - by dr.lozer - 20.10.2012, 08:36
Re: [Dr.Lozer] Is This Right Code ?? - by cessil - 20.10.2012, 10:36

Forum Jump:


Users browsing this thread: 1 Guest(s)