Help[NPC Problem!]
#1

How to

When NPC Disconnect from server.


NPC will Auto Connect from Server.
Reply
#2

i did this some time ago for npc's wich are in a vehicle

Код:
public OnVehicleSpawn(vehicleid)
{
	if (vehicleid == car478)
    {
    ConnectNPC("vehicle478","lv478");
    }
	if (vehicleid == carbus1)
    {
    ConnectNPC("lvbus","lvbus1");
    }
   	if (vehicleid == car578)
    {
    ConnectNPC("lv578","LV578");
    }
   	if (vehicleid == car443)
    {
    ConnectNPC("lv443","LV443");
    }
   	if (vehicleid == carbus1)
    {
    ConnectNPC("lv409","LVlimo1");
    }
 	if (vehicleid == car409)
    {
    ConnectNPC("LV566","lv566");
	}
	
    return 1;
}
with just a walking npc it should be under onplayerdisconnect ->if isplayernpc->if(something that checks the npc name) and then connectnpc again.
good luck!
Reply
#3

thx......
Reply
#4

How to GetPlayerName ??
Reply
#5

pawn Код:
new name[20];
GetPlayerName(playerid, name, 20);
//you've got player's name in name array
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)