30.05.2013, 01:36
I saw in many CnR servers that Cops when they shoot another Cop , Their Health don't decrease how can i make it , shall i make it with OnPlayerTakeDamage ?
SetPlayerTeam(playerid, TEAM);
TeamVariable[playerid] = TEAM_SOMETHING;
can you make it in code , can't get it , or is there a tutorial or something like this
|
stock TeamOne
{
SetPlayerTeam(playerid, TeamOne);
TeamVariable[playerid] = TeamOne;
return 1;
}
stock TeamTwo
{
SetPlayerTeam(playerid, TeamTwo);
TeamVariable[playerid] = TeamTwo;
return 1;
}
#define TEAM_COPS 0 Stock TeamOne { SetPlayerTeam(playerid, TeamOne); TeamVariable[playerid] = TeamOne; return 1; } Public OnPlayerSpawn(playerid) { If(gTeam[playerid] == TEAM_COPS) { TeamOne(playerid); return 1; } }