Npc problem!
#1

Hi all
i have a problem with my npc's i try to make a npc.. the registration,the script,the connect in my gm,all ok no errors
but when npc connect on my server he get spawned in center of san andreas :/ and i can see him

any one know why?
thx
sorry for my bad english
Reply
#2

You must tell the script what to do with the NPC.

For example:

pawn Код:
public OnPlayerSpawn(playerid)
{
    if(IsPlayerNPC(playerid))
    {
        PutPlayerInVehicle(playerid,vehicleid,0); // Put him in a vehicle of your choice?
        SetPlayerPos(playerid,0.0,0.0,0.0); // Put him somewhere of your choice?
        SetPlayerSkin(playerid,29); // Put him in the hoodie skin?
        // And so on, you can also have multiple NPC's and use name-checking to identify them
    }
    return 1;
}
Reply
#3

ok im trying thx for help
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)