Set NPC Color? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Set NPC Color? (
/showthread.php?tid=123482)
Set NPC Color? -
sidhu123 - 26.01.2010
Is there a SetPlayerColor for NPC's?
Like, SetNPCColor ?
Re: Set NPC Color? -
bluray - 26.01.2010
i think it might be the same but the player id is the npc's name
Re: Set NPC Color? -
deather - 26.01.2010
Код:
public OnPlayerSpawn(playerid)
{
if(!IsPlayerNPC(playerid)) return 1;
new playername[64];
GetPlayerName(playerid,playername,64);
if(!strcmp(playername,"name of your npc",true)) {
SetPlayerColor(playerid,0xFFFFFFFF);
}
Re: Set NPC Color? -
sidhu123 - 26.01.2010
Got it to work!