#1

why my npc dont spawn?


this is my onplayerspawn
pawn Код:
if(IsPlayerNPC(playerid))
    {
        new npcname[MAX_PLAYER_NAME];
        GetPlayerName(playerid, npcname, sizeof(npcname));
        if(!strcmp(npcname, "Bisteccone", true))
        {
            SetPlayerSkin(playerid, 188);
            SetPlayerColor(playerid,0xFFFFFF00);
            ApplyAnimation(playerid, "COP_AMBIENT","Coplook_loop", 4.0, 1, 1, 1, 1, 0, 1);
        }
        return 1;
    }
Reply
#2

pawn Код:
public OnPlayerRequestSpawn( playerid )
{
    if( IsPlayerNPC( playerid ) ) return 1;
    //:........
}
Reply
#3

ok works thx
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)