rendered paste bodypublic OnPlayerRequestClass(playerid, classid)
{
new Text:Class1;
new Text:Class2;
new Text:Class3;
new Text:Class4;
SetPlayerClass(playerid, classid);
SetupPlayerForClassSelection(playerid);
gPlayerClass[playerid] = classid;
switch (classid) {
case 0:
{
Class1=TextDrawCreate(545,17,"BUSINES TEAM");
TextDrawColor(Text:Class1,COLOR_GREEN);
TextDrawFont(Text:Class1,1);
TextDrawShowForPlayer(playerid,Class1);
TextDrawDestroy(Text:Class2);
TextDrawDestroy(Text:Class3);
TextDrawDestroy(Text:Class4);
}
case 1:
{
Class2=TextDrawCreate(545,17,"MAFIA TEAM");
TextDrawColor(Text:Class2,COLOR_GREEN);
TextDrawFont(Text:Class2,1);
TextDrawShowForPlayer(playerid,Class2);
TextDrawDestroy(Text:Class1);
TextDrawDestroy(Text:Class3);
TextDrawDestroy(Text:Class4);
}
case 2:
{
Class3=TextDrawCreate(545,17,"XOOMER TEAM");
TextDrawColor(Text:Class3,COLOR_GREEN);
TextDrawFont(Text:Class3,1);
TextDrawShowForPlayer(playerid,Class3);
TextDrawDestroy(Text:Class1);
TextDrawDestroy(Text:Class2);
TextDrawDestroy(Text:Class4);
}
case 3:
{
Class3=TextDrawCreate(545,17,"VINKE TEAM");
TextDrawColor(Text:Class3,COLOR_GREEN);
TextDrawFont(Text:Class3,1);
TextDrawShowForPlayer(playerid,Class3);
TextDrawDestroy(Text:Class1);
TextDrawDestroy(Text:Class2);
TextDrawDestroy(Text:Class3);
}
case 4:
{
Class4=TextDrawCreate(545,17,"NINJA TEAM");
TextDrawColor(Text:Class4,COLOR_GREEN);
TextDrawFont(Text:Class4,1);
TextDrawShowForPlayer(playerid,Class4);
TextDrawDestroy(Text:Class1);
TextDrawDestroy(Text:Class2);
TextDrawDestroy(Text:Class3);
TextDrawDestroy(Text:Class4);
}
}
return 1;
}