GameTextForPlayer Help Please
#1

closed.
Reply
#2

pawn Код:
new gSkinNames[][] = {
"Carl \"CJ\" Johnson", // ID 0
"The Truth", // ID 1
"Maccer" // ID 2
// etc.
};

public OnPlayerRequestClass(playerid, classid)
{
    GameTextForPlayer(playerid, gSkinNames[GetPlayerSkin(playerid)], 3000, 3);
    return 1;
}
Note that this will only work if GetPlayerSkin works under OnPlayerRequestClass. I have never tested it so..

https://sampwiki.blast.hk/wiki/Skins:All

NOTE: You WILL need to create a blank entry to invalid skins.
Reply
#3

Quote:
Originally Posted by MP2
Посмотреть сообщение
pawn Код:
new gSkinNames[][] = {
"Carl \"CJ\" Johnson", // ID 0
"The Truth", // ID 1
"Maccer" // ID 2
// etc.
};

public OnPlayerRequestClass(playerid, classid)
{
    GameTextForPlayer(playerid, gSkinNames[GetPlayerSkin(playerid)], 3000, 3);
    return 1;
}
Note that this will only work if GetPlayerSkin works under OnPlayerRequestClass. I have never tested it so..

https://sampwiki.blast.hk/wiki/Skins:All

NOTE: You WILL need to create a blank entry to invalid skins.
Thank you brother. +REP and God bless!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)