GameTextForPlayer Help Please - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: GameTextForPlayer Help Please (
/showthread.php?tid=336622)
closed. :) -
WarriorEd22 - 23.04.2012
closed.
Re: GameTextForPlayer Help Please -
MP2 - 23.04.2012
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.
Re: GameTextForPlayer Help Please -
WarriorEd22 - 23.04.2012
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!