15.05.2015, 11:00
@Konstantinos
I have made this now can you tell me if work?
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
if(issuerid != INVALID_PLAYER_ID)
{
if(GetPlayerTeam(issuerid) == GetPlayerTeam(playerid))
{
new Float:h;
GetPlayerHealth(playerid,h);
SetPlayerHealth(playerid,h+amount);
GameTextForPlayer(issuerid,"Don't shoot your team",2000,3);
return 1;
}else if(GetPlayerTeam(issuerid) == GetPlayerTeam(playerid) && GetPlayerTeam(playerid) == Civilians){
return 1;
}
}
return 1;
}
I have made this now can you tell me if work?
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
if(issuerid != INVALID_PLAYER_ID)
{
if(GetPlayerTeam(issuerid) == GetPlayerTeam(playerid))
{
new Float:h;
GetPlayerHealth(playerid,h);
SetPlayerHealth(playerid,h+amount);
GameTextForPlayer(issuerid,"Don't shoot your team",2000,3);
return 1;
}else if(GetPlayerTeam(issuerid) == GetPlayerTeam(playerid) && GetPlayerTeam(playerid) == Civilians){
return 1;
}
}
return 1;
}