SA-MP Forums Archive
Damage - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Damage (/showthread.php?tid=208271)



Damage - NuggaN_ - 08.01.2011

Hey, I've created weapons on my selfmade gamemode. But well, mates connecting to it via hamachi but well we testet it and we dont lose HP if we are shooting each other, or getting rotored by the helicopter etc.
Only if the car exploses


Re: Damage - Joe Staff - 08.01.2011

Check your teams, if players' teams are matching they can't hurt each other.

Simple fix
pawn Код:
public OnPlayerSpawn(playerid)
{
    SetPlayerTeam(playerid,playerid);
    return 1;
}



AW: Re: Damage - NuggaN_ - 08.01.2011

Quote:
Originally Posted by SilentHuntR
Посмотреть сообщение
Check your teams, if players' teams are matching they can't hurt each other.

Simple fix
pawn Код:
public OnPlayerSpawn(playerid)
{
    SetPlayerTeam(playerid,playerid);
    return 1;
}
Hi, thanks first for your fast answer
I dont get it that right, why SetPlayerTeam :O
Should be for all. That they can do DM. Going to do a Reallife Server, just cant lose HP if we're shooting each other.
Saw it working on other Roleplay Servers