NPC Skin
#1

How can I change my boths skin on spawn.
Reply
#2

SetSpawnInfo in OnPlayerSpawn

https://sampwiki.blast.hk/wiki/SetSpawnInfo
Reply
#3

In NPCmodes are not this work.
Reply
#4

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

Ok.


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

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;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)