NPC donґt spawn
#1

well ... the NPC is uploaded, the file ".rec" is loaded, but what I use on "OnPlayerSpawn" does not work ...
can someone help me?
Thanks already!
Reply
#2

Try to open server.cfg and set maxnpc to the amount of NPC.
Reply
#3

I've done that, put up twice ...

pawn Код:
public OnPlayerSpawn(playerid)
{
    if(IsPlayerNPC(playerid))
    {
        new nomenpc[MAX_PLAYER_NAME];
        GetPlayerName(playerid,nomenpc,sizeof(nomenpc));
        if(!strcmp(nomenpc,"Motorista_Manuel",true))
        {
            PutPlayerInVehicle(playerid, NPC_Tram, 0);
            SetSpawnInfo( playerid, 0, 43, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0 );
        }
    }
    return 1;
}
the server is not detecting it, I think, because they are not performing these functions ...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)