NPCs connects but they dont spawn
#1

Hey guys,

Iґve a little problem over here, I wanted to test some shit with NPCґs but they just dont spawn ;(

Iґve replaced the names, and coords in the gl_npcs fs and my rcon console always tells me that there are incomming connections.

But when I try to teleport to them Iґm getting teleportet to the "0,0,0,-Coordinates"

I already ******d it but yet I didnt couldnt find out what Iґm doing wrong

Code in the GM:

PHP код:
public OnPlayerRequestClass(playeridclassid)
{
    if(
IsPlayerNPC(playerid)) return SpawnPlayer(playerid);
    
SetPlayerInterior(playerid,3);
    
SetPlayerPos(playerid513.0422,-17.3889,1001.5653);
    
SetPlayerCameraPos(playerid513.0743,-10.5657,1001.5653);
    
SetPlayerCameraLookAt(playerid513.0422,-17.3889,1001.5653);
    
SetPlayerFacingAngle(playerid352.0760);
    
    
TextDrawShowForPlayer(playeridTextdraw0);
    return 
1;

Code in the NPC-File:

PHP код:
public OnNPCSpawn()
{
    
SendChat("hi there!");
    
NextPlayback();

Reply


Messages In This Thread
NPCs connect but they dont spawn - by Saize - 19.01.2015, 10:06
Re: NPCs connects but they dont spawn - by ATGOggy - 19.01.2015, 10:11
AW: Re: NPCs connects but they dont spawn - by Saize - 19.01.2015, 10:13
AW: NPCs connects but they dont spawn - by Saize - 19.01.2015, 12:34

Forum Jump:


Users browsing this thread: 2 Guest(s)