26.07.2016, 09:50
Why dont my npc connect to the server?
OnGameModeInit
OnPlayerSpawn
OnGameModeInit
pawn Код:
print("NPC/John_Wikings has connected");
ConnectNPC("Train","John_Wikings");
pawn Код:
if(IsPlayerNPC(playerid))
{
new string[32];
GetPlayerName(playerid, string, 32);
if(!strcmp(string, "John_Wikings"))
{
SetPlayerSkin(playerid, 264);
PutPlayerInVehicle(playerid, Train, 0);
print("NPC/John_Wikings has spawned");
}
return 1;
}