[Help] Class Selection Textraw Click
#1

Hey!
Can somebody link me to this or either help me?

What im trying to do i've seen it on different servers.

When you are onRequestClass
Teams appear with different characters on top, so when you either click the skin or the text it spawns you with the choosen team.
Reply
#2

Firstly use the search button first to see if you can find anything like this.

pawn Код:
public OnGameModeInit()
{
    AddPlayerClass(0, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0); //Civilian - classid = 0
    AddPlayerClass(1, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0); //Mafia - classid = 1
    return 1;
}
public OnPlayerRequestClass(playerid,classid)
{
     //Create the TextDraw on OnPlayerConnect.
    //---
    if(classid == 0)
    {
        TextDrawSetString(TextDrawName, "Civilian");
    }
    else if(classid == 1)
    {
        TextDrawSetString(TextDrawName, "Mafia");
    }
    TextDrawShowForPlayer(playerid, TextDrawName);
    return 1;
}
public OnPlayerRequestSpawn(playerid)
{
    TextDrawHideForPlayer(playerid, TextDrawName);
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)