[Include] ClassSelection.inc - Easily create class selection textdraws! - 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: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (
https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] ClassSelection.inc - Easily create class selection textdraws! (
/showthread.php?tid=595998)
ClassSelection.inc - Easily create class selection textdraws! -
FreAkeD - 11.12.2015
ClassSelection.inc
Easily create your own class selection textdraws with one line.
Functions
- ShowClassTextdraw(playerid, teamcolor, teamname[], teaminfo[]);
playerid - The player to display the textdraw for.
teamcolor - The color of the team.
namename[] - The team name.
teaminfo[] - Information about the team.
- HideClassTextdraw(playerid);
playerid - The player to hide the textdraws from.
Screenshots
Imgur Album
Download
The GitHub repository has the include file, as well as an example file.
GitHub
Re: ClassSelection.inc - Easily create class selection textdraws! -
SickAttack - 11.12.2015
You should return a value on the function "HideClassTextdraw(playerid)" and "ShowClassTextdraw(playerid, teamcolor, teamname[], teaminfo[])" as it will give you a warning if said functions are returned.
Other than that, this could be useful for some people.
Good job, bud.
Re: ClassSelection.inc - Easily create class selection textdraws! -
FreAkeD - 11.12.2015
Quote:
Originally Posted by SickAttack
You should return a value on the function "HideClassTextdraw(playerid)" and "ShowClassTextdraw(playerid, teamcolor, teamname[], teaminfo[])" as it will give you a warning if said functions are returned.
Other than that, this could be useful for some people.
Good job, bud.
|
Fixed.
Thanks!