Script Cant hurt your team mates
#1

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
Reply
#2

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..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)