Imam dva NPC-a , nastimani su da voze autobuse, i udju na server ali nikako da se loguju, no samo stoje na Spawnu..
Dali zna neko, kako to da rijesim ?
[POMOC] NPC
Započeo Obrisan korisnik
•1. Feb. 2011.1,073
pregleda
5
postova
1. Feb. 2011.
1. Feb. 2011.
public OnGameModeInit()
{
ConnectNPC("Bus_Driver0","busnpc0");
ConnectNPC("Bus_Driver1","busnpc1");
Na OnGameModeInit
public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid)) //Checks if the player that just spawned is an NPC.
{
new npcname;
GetPlayerName(playerid, npcname, sizeof(npcname)); //Getting the NPC's name.
if(!strcmp(npcname, "Bus_Driver1", true)) //Checking if the NPC's name is MyFirstNPC
{
PutPlayerInVehicle(playerid, NpcVozilo0, 0); //Putting the NPC into the vehicle we created for it.
return 1;
}
if(!strcmp(npcname, "Bus_Driver0", true))
{
PutPlayerInVehicle(playerid, NpcVozilo1, 0);
return 1;
}
return 1;
Ovako mi stoji, ali samo se "join" , jednostavno nece da se "Logged in"
{
ConnectNPC("Bus_Driver0","busnpc0");
ConnectNPC("Bus_Driver1","busnpc1");
Na OnGameModeInit
public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid)) //Checks if the player that just spawned is an NPC.
{
new npcname;
GetPlayerName(playerid, npcname, sizeof(npcname)); //Getting the NPC's name.
if(!strcmp(npcname, "Bus_Driver1", true)) //Checking if the NPC's name is MyFirstNPC
{
PutPlayerInVehicle(playerid, NpcVozilo0, 0); //Putting the NPC into the vehicle we created for it.
return 1;
}
if(!strcmp(npcname, "Bus_Driver0", true))
{
PutPlayerInVehicle(playerid, NpcVozilo1, 0);
return 1;
}
return 1;
Ovako mi stoji, ali samo se "join" , jednostavno nece da se "Logged in"
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava