SA-MP Forums Archive
Tag Permission Also Team - 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: Tag Permission Also Team (/showthread.php?tid=515237)



Tag Permission Also Team - rockhopper - 25.05.2014

How do I Make Tag Permission for my server like [DDs]Rockhopper Is my name but only admins can some with that name or if another player enters with [DDS] without permission then he should be kicked ..

And also a team permission If that player doesnt have permission then he cant choose that team


Re: Tag Permission Also Team - Ciandlah - 25.05.2014

Hopefully this helps you out, If it does +1 rep and Ill give ya one back

1. Place this code under where your players login and check if they are admin, if they are give them this.

2. CODE
Код:
new name[MAX_PLAYER_NAME+1], string[24+MAX_PLAYER_NAME+1];
    GetPlayerName(playerid, name, sizeof(name));
	format(string, sizeof(string), "[ADMIN]%s", name);
	SetPlayerName(playerid, string);
You do not need to join the server with [DDS], just set it that if your in this clan or an admin it changes your name


Re: Tag Permission Also Team - rockhopper - 25.05.2014

And what about team ?


Re: Tag Permission Also Team - Ciandlah - 25.05.2014

Team is the same thing - Check if a player is in a team as I explained before and change the '[ADMIN]' to '[TEAM/CLAN]' simple.

+1 rep if I have helped ya out


Re: Tag Permission Also Team - rockhopper - 25.05.2014

WAit im checking if its working Will Rep Dont worry


Re: Tag Permission Also Team - rockhopper - 25.05.2014

Not working


Re: Tag Permission Also Team - Ciandlah - 25.05.2014

The code I gave you works fine, its how you implement it into your code.