05.07.2018, 22:20
Hi I've making this for classes gametext! but It's not work!
This message showing for ALL Classes!! I just want for F.B.I + Army
PHP код:
public OnPlayerRequestClass(playerid, classid)
{
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;
}
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;
}