Name tags
#1

hey i have just searched all the tutorials and script examples on the forum for Name Tags like [ST] when a player with the tag [ST] joins his name is green automatic
and there are cars that only [ST] members can Join can you do that like ifPlayerNamecontains(playerid,"[ST]"); and then blablabla?

:P

thanx - luckie12
Reply
#2

use your name-[tag] comparement check in OnPlayerLogin(), and if a tag matches, set a PVar containing the color. at each OnPlayerSpawn(), you can now apply the players color.
for the vehicles, you need to store the faction-tag in a string for each vehicle, apply the name-tag check again in OnPlayerStatechange() as driver, by using the playername with the vehicle string. if hey match, a player is allowed to stay in, else remove the player from the vehicle.
since you will use the tag check in more than 1 callback, change the tag check into a stock...

edit: pm sent. long one, lol
Reply
#3

...easier said than done reading XD

can you give a example ? :P
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)