Problem in the anti god mode - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problem in the anti god mode (
/showthread.php?tid=290246)
Problem in the anti god mode -
RcoN! - 15.10.2011
This code should expel a player who loses no life
but expels an innocent player
the idea is to expel a player who loses no life
that should be corrected?
The code by Josta Using Include OnPlayerShootPlayer by wups
pawn Код:
new Float:vida[MAX_PLAYERS];
public OnPlayerSpawn(playerid)
{
vida[playerid] = 100.0;
return 1;
}
public OnPlayerShootPlayer(Shooter,Target,Float:HealthLost,Float:ArmourLost)
{
if(floatcmp(vida[Target],HealthLost))
{
Kick(Target);
return 1;
}
vida[Target] = HealthLost;
return 1;
}
Respuesta: Problem in the anti god mode -
RcoN! - 15.10.2011
please iam need help