Jump to content
  • 0

problema npc


Andr3y

Question

4 answers to this question

Recommended Posts

[pawn]public OnPlayerSpawn(playerid)

{

    if(IsPlayerNPC(playerid)) //Verifica daca playerul este NPC

    {

        new npcname[MAX_PLAYER_NAME];

        GetPlayerName(playerid, npcname, sizeof(npcname)); //Luam numele NPCului

        if(!strcmp(npcname, "NUME", true)) //Verificam daca numele NPCului este "NUME"

        {

            SetPlayerColor(playerid, culoare)

            SetPlayerSkin(playerid, skinid)

        }

        return 1;

    }

    //Celelalte lucruri din OnPlayerSpawn

    return 1;

}[/pawn]

Tutorial facut de Ch1NeZu.Data viitoare te-as sfatui sa dai search.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.