[AJUDA] Skin do NPC.
#6

nгo mecho muito com npc's entгo tente:

pawn Код:
new g[2];
public OnPlayerSpawn(playerid)
{
    if(IsPlayerNPC(playerid))
    {
        new npcname[MAX_PLAYER_NAME];
        GetPlayerName(g[1], npcname, sizeof(npcname));
        if(!strcmp(npcname, "mecanico", true))
        {
            SetPlayerSkin(playerid,50);
            return 1;
        }
        return 1;
    }
    if(IsPlayerNPC(playerid))
    {
        new npcname[MAX_PLAYER_NAME];
        GetPlayerName(g[1], npcname, sizeof(npcname)); //Getting the NPC's name.
        if(!strcmp(npcname, "Policial", true))
        {
            SetPlayerSkin(playerid,280);
            return 1;
        }
    }
    return 1;
}
public OnGameModeInit()
{
    g[0] = ConnectNPC("Policia","Policial");
    g[1] = ConnectNPC("Mecanico","mecanico");
    return 1;
}
Reply


Messages In This Thread
[AJUDA] Skin do NPC. - by Keiichi - 26.05.2011, 16:00
Re: [AJUDA] Skin do NPC. - by Macintosh - 26.05.2011, 16:46
Re: [AJUDA] Skin do NPC. - by Keiichi - 26.05.2011, 17:02
Re: [AJUDA] Skin do NPC. - by TheGarfield - 26.05.2011, 20:34
Re: [AJUDA] Skin do NPC. - by Keiichi - 26.05.2011, 21:01
Re: [AJUDA] Skin do NPC. - by TheGarfield - 26.05.2011, 21:19
Re: [AJUDA] Skin do NPC. - by Keiichi - 26.05.2011, 21:54
Re: [AJUDA] Skin do NPC. - by Macintosh - 26.05.2011, 23:46

Forum Jump:


Users browsing this thread: 1 Guest(s)