SA-MP Forums Archive
NPC Skin - 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: NPC Skin (/showthread.php?tid=99654)



NPC Skin - _TeRmiNaToR_ - 29.09.2009

How can I change my boths skin on spawn.


Re: NPC Skin - V1ceC1ty - 29.09.2009

SetSpawnInfo in OnPlayerSpawn

https://sampwiki.blast.hk/wiki/SetSpawnInfo


Re: NPC Skin - _TeRmiNaToR_ - 29.09.2009

In NPCmodes are not this work.


Re: NPC Skin - V1ceC1ty - 29.09.2009

Please post in scripting disscussion next time this is for 0.3 Only.


Re: NPC Skin - _TeRmiNaToR_ - 29.09.2009

Ok.


Quote:
Originally Posted by _TeRmiNaToR_
In NPCmodes are not this work.



Re: NPC Skin - V1ceC1ty - 29.09.2009

sorry this is for bots isnt it, silly me.

In a fs or gm where you connect the bots.

Код:
public OnPlayerSpawn(playerid)
{
  if(!IsPlayerNPC(playerid)) return 0;

	new playername[64];
	GetPlayerName(playerid,playername,64);

 	if(!strcmp(playername,"BOTNAME",true)) {
    SetSpawnInfo( playerid, 0, 255, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0 );
	}
  return 1;
}