Print text after selecting class
#5

Quote:
Originally Posted by Pawnstar
Посмотреть сообщение
Oh my bad, would i do Sendclientmessage(etc);
You would do SendClientMessage(playerid, color, message[]); OnPlayerRequestClass. Classes are given a ID. Starts from 0 and so on. So

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    if(classid == 0)
    {
        SendClientMessage(playerid, -1, "You have selected CJ, This class has no perks and spawns with nothing");
    }
    else if(classid == 1)
    {
        SendClientMessage(playerid, -1, "You have selected SWAT, This class spawns with some weapons");
    }
    else if(classid == 2)
    {
        SendClientMessage(playerid, -1, "You have selected Balla, This is a gang member with little weapons");
    }
    return 1;
}
Reply


Messages In This Thread
Print text after selecting class - by Pawnstar - 13.11.2012, 19:40
Re: Print text after selecting class - by tyler12 - 13.11.2012, 19:41
Re: Print text after selecting class - by Pawnstar - 13.11.2012, 19:43
Re: Print text after selecting class - by InfiniTy. - 13.11.2012, 19:44
Re: Print text after selecting class - by tyler12 - 13.11.2012, 19:46
Re: Print text after selecting class - by Pawnstar - 13.11.2012, 19:52
Re: Print text after selecting class - by tyler12 - 13.11.2012, 19:57

Forum Jump:


Users browsing this thread: 1 Guest(s)