OnPlayerRequestClass
#1

Hi I've making this for classes gametext! but It's not work!

PHP код:
public OnPlayerRequestClass(playeridclassid)
{
    if(
classid == 0)
    {
        if(
gTeam[playerid] == FBII(GetPlayerSkin(playerid)))
        {
            
GameTextForPlayer(playerid,"~B~F.B.I",3000,5); // This will show up an Text , when you select your class
            
return 1;
        }
    }
    else if(
classid == 1)
    {
        if(
gTeam[playerid] == Army(GetPlayerSkin(playerid)))
        {
            
GameTextForPlayer(playerid,"~p~A.R.M.Y",3000,5);
            return 
1;
        }
    }
    return 
1;

This message showing for ALL Classes!! I just want for F.B.I + Army

PHP код:
stock FBII(skinid)
{
    switch(
skinid)
    {
        case 
286: return 1;
        default: return 
0;
    }
    return 
1;
}
stock Army(skinid)
{
    switch(
skinid)
    {
        case 
287: return 1;
        default: return 
0;
    }
    return 
1;

Reply


Messages In This Thread
OnPlayerRequestClass - by Thanks - 05.07.2018, 22:20
Re: OnPlayerRequestClass - by Thanks - 05.07.2018, 22:34
Re: OnPlayerRequestClass - by Sew_Sumi - 05.07.2018, 23:48

Forum Jump:


Users browsing this thread: 1 Guest(s)