Problem Skin NPC
#1

public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid))
{
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid,playername,MAX_PLAYER_NAME) ;
if(strcmp(playername,"Vendeur1",true))
{ //Nom de votre enregistrement
SetPlayerSkin(playerid, 279);
}
return 1;
}
return 1;
}

Wont change Skin Why ? Ty for help
Reply
#2

pawn Код:
public OnPlayerSpawn(playerid)
{
     if(IsPlayerNPC(playerid))
     {
          new npc_name[24];
          GetPlayerName(playerid,npc_name,sizeof(npc_name));
          if(!strcmp(npc_name,"Vendeur1",false))
          {
               SetPlayerSkin(playerid, 279; // your skin choice for NPC
          }
          return 1;
     }
//rest of callback here
This should fix it

If i helped +rep me
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)