08.01.2012, 13:40
How do i set my npc skin.??And i need a scripter for my server
But the important thing is skin for nPC!
But the important thing is skin for nPC!
public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid)) {
new npcname[MAX_PLAYER_NAME];
GetPlayerName(playerid, npcname, sizeof(npcname));
if(!strcmp(npcname, "Bot_Name", true)) {
SetPlayerSkin(playerid, 200); // <- The Skin here!
}
return 1;
}
//Other stuff for normal players goes here!
return 1;
}
public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid))
{
new name[24];GetPlayerName(playerid,name,24);
if(strcmp(name,"BOTNAME",true)!=0)
{
SetPlayerSkin(playerid, IDSKIN);
}
}
}