19.01.2015, 10:06
(
Последний раз редактировалось Saize; 19.01.2015 в 12:56.
)
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:
Code in the NPC-File:
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(playerid, classid)
{
if(IsPlayerNPC(playerid)) return SpawnPlayer(playerid);
SetPlayerInterior(playerid,3);
SetPlayerPos(playerid, 513.0422,-17.3889,1001.5653);
SetPlayerCameraPos(playerid, 513.0743,-10.5657,1001.5653);
SetPlayerCameraLookAt(playerid, 513.0422,-17.3889,1001.5653);
SetPlayerFacingAngle(playerid, 352.0760);
TextDrawShowForPlayer(playerid, Textdraw0);
return 1;
}
PHP код:
public OnNPCSpawn()
{
SendChat("hi there!");
NextPlayback();
}