14.12.2009, 16:16
Hi.The problem is: I make a text draw
I put it in
I dont know why it dont hows up.can somebodey help me ?
Код:
new Text:klase; klase = TextDrawCreate(10, 370, "Klase"); TextDrawLetterSize(Text:klase, 0, 0); TextDrawTextSize(Text:klase, 100, 100); TextDrawAlignment(Text:klase, 0); TextDrawColor(Text:klase, -1); TextDrawUseBox(Text:klase, 0); TextDrawSetShadow(Text:klase, 0); TextDrawBoxColor(Text:klase, -1347440726); TextDrawSetOutline(Text:klase, 1); TextDrawBackgroundColor(Text:klase, 170); TextDrawFont(Text:klase, 2); TextDrawSetProportional(Text:klase, 1);
Код:
public OnPlayerRequestClass(playerid, classid)
{
TextDrawShowForPlayer(playerid,Text:opcija);
gPlayerClass[playerid] = classid;
switch (classid) {
case 0,1,2:
{
gTeam[playerid] = TEAM_GANGSTERI;
if(classid == 0)
{GameTextForPlayer(playerid, "~w~syko", 1000, 3);
SetPlayerColor(playerid,COLOR_GANGSTERI);}
else if(classid == 1)
{GameTextForPlayer(playerid, "~w~Sgt. Dick", 1000, 3);
SetPlayerColor(playerid,COLOR_GANGSTERI);}
else if(classid == 2)
{GameTextForPlayer(playerid, "~w~CHP Reject", 1000, 3);
SetPlayerColor(playerid,COLOR_GANGSTERI);}
}
case 3,4,5:
{

