SA-MP Forums Archive
Wondering if its work or not. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Wondering if its work or not. (/showthread.php?tid=622368)



Wondering if its work or not. - henkas - 21.11.2016

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


Re: Wondering if its work or not. - GoldenLion - 21.11.2016

Go test it?


Re: Wondering if its work or not. - henkas - 21.11.2016

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


Re: Wondering if its work or not. - Sew_Sumi - 21.11.2016

If you use SetPlayerTeam, friendly fire is off anyway.


Re: Wondering if its work or not. - henkas - 21.11.2016

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.


Re: Wondering if its work or not. - henkas - 21.11.2016

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