12.06.2015, 00:29
Hi Guys,
I made a Safe Mode place,
So i wan't to avoid the fights etc..
So i did this code :
Under OnPlayerTakeDamage
But i didn't work, the players can shot they others.. :S
Help?
I made a Safe Mode place,
So i wan't to avoid the fights etc..
So i did this code :
PHP код:
if(gTeam[playerid] == TEAM_SURVIVANT && gTeam[issuerid] == TEAM_SURVIVANT) {
if(IsSafe[playerid] == 1) {
ApplyAnimation(playerid, "DANCING", "bd_clap", 4.1, 1, 1, 1, 1, 1, 1);
SendClientMessage(playerid,COLOR_LIGHTBLUE, "Vous ne pouvez blesser quelqu'un en Safe Mode");
}
}
But i didn't work, the players can shot they others.. :S
Help?