21.11.2016, 10:41
Sup i was creating anti team killing script so i dont get any error, bat i'm pretty confused is it will work or not, cuz its luck to simple and code never work fine if that code luck simple, its me logic ![Cheesy](images/smilies/biggrin.png)
This code should send message for that player if he attack him. Just send message nothing more.
if(Abilitys[playerid][HideSkin] < gettime()) so if you dont know what its mean so i have system like Team_Blue have a class which make him invisible and give Team_Red color.
So what can be wrong with this code? I dont really test it, bat i'm sure is something wrong with it.
P.S this code in OnPlayerTakeDamage callback
![Cheesy](images/smilies/biggrin.png)
This code should send message for that player if he attack him. Just send message nothing more.
Код:
if(team[issuerid] == TEAM_BLUE) { if(Abilitys[playerid][HideAbility] < gettime()) { GameTextForPlayer(playerid,"~w~ This is fake red team player",1000,5); } }
So what can be wrong with this code? I dont really test it, bat i'm sure is something wrong with it.
P.S this code in OnPlayerTakeDamage callback