30.10.2010, 16:17
Hey there,
I'm seaking a script that'll assign a random 5 character tail number (AA111 - ZZ999) to each aircraft in my gamemode. I've already created a means to detect when a player enters an aircraft (through OnPlayerStateChange), as I've made a flight instruments textdraw that shows in this case - all I need is the random string.
Bear in mind that I'll need to ensure each tail number is given to the vehicleid, not playerid, and that each is unique (ie no two aircraft could share the same one). It should generate the string, I assume, when a player enters the aircraft, as I'd like it to work for any aircraft I create mid-game.
Any help to get the ball rolling would be greatly appreciated.
I'm seaking a script that'll assign a random 5 character tail number (AA111 - ZZ999) to each aircraft in my gamemode. I've already created a means to detect when a player enters an aircraft (through OnPlayerStateChange), as I've made a flight instruments textdraw that shows in this case - all I need is the random string.
Bear in mind that I'll need to ensure each tail number is given to the vehicleid, not playerid, and that each is unique (ie no two aircraft could share the same one). It should generate the string, I assume, when a player enters the aircraft, as I'd like it to work for any aircraft I create mid-game.
Any help to get the ball rolling would be greatly appreciated.