Wondering if its work or not.
#1

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
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);
	}
	}
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
Reply
#2

Go test it?
Reply
#3

Yea i will, bat maybe you see something wrong. Bat sure i will test it.
Reply
#4

If you use SetPlayerTeam, friendly fire is off anyway.
Reply
#5

Quote:
Originally Posted by Sew_Sumi
Посмотреть сообщение
If you use SetPlayerTeam, friendly fire is off anyway.
Yes you right bat the points is when select his class which give enemy color so if team mate attack him he get message that is fake enemy its just team mate with enemy color.
Reply
#6

Well i just test it and its really messy shit :d This text shows up now who ever attack me Like if i doesn't select that class i still get that message :d
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)