Script Cant hurt your team mates - 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: Script Cant hurt your team mates (
/showthread.php?tid=101973)
Script Cant hurt your team mates -
[SOB]Chris - 13.10.2009
I want make a script, the script makes you inhurtble for your team mates, i want make teams and if you shoot a team mate the player dont hurt, like the party server, but i dont have idea what public y should use? onplayerupdate()?? how i can distinguish if the person who shot me is a fellow.
ideas for start the script?? =D
Re: Script Cant hurt your team mates -
Abernethy - 13.10.2009
Use gTeam, then get the players team & use the SetPlayerTeam function on spawn.
pawn Код:
if (gTeam[playerid] == TEAM_US)
{
SetPlayerTeam(playerid, TEAM_US);
}
else if // etc..