Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //At the top of script
- new Text:ClassSection[MAX_PLAYERS];
- //OnGameModeInit
- //Class Section
- for(new i = 0; i<MAX_PLAYERS; i++){
- ClassSection[i] = TextDrawCreate(000.000000,000.000000," ");//The position is correct i just made it 000 :P
- TextDrawAlignment(ClassSection[i],0);
- TextDrawBackgroundColor(ClassSection[0],color);
- TextDrawFont(ClassSection[i],3);
- TextDrawLetterSize(ClassSection[i],0.399999,1.600000);
- TextDrawColor(ClassSection[i], clolr);
- TextDrawSetOutline(ClassSection[i],1);
- TextDrawSetProportional(ClassSection[i],1);}
- public OnPlayerRequestClass(playerid, classid)
- {
- TextDrawShowForPlayer(playerid, ClassSection[playerid]);
- switch (classid) {
- case 0..3: {
- TextDrawSetString(ClassSection[playerid], "Team");}
- case 4..7: {
- TextDrawSetString(ClassSection[playerid], "Team");}
- case 8..10: {
- TextDrawSetString(ClassSection[playerid], "Team");}
- case 11..14:{
- TextDrawSetString(ClassSection[playerid], "Team");}
- case 15..21:{
- TextDrawSetString(ClassSection[playerid], "Team");}}
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- TextDrawHideForPlayer(playerid, ClassSection[playerid]);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement