23.01.2017, 19:49
Hi nate4, thanks for your response!
I paste this code un my GameMode outside any callbacks. But never runs the "pintf()", Then the code is not reading the callback. Do you have any idea what it will be?
I paste this code un my GameMode outside any callbacks. But never runs the "pintf()", Then the code is not reading the callback. Do you have any idea what it will be?
Code:
forward OnNPCConnect(myplayerid); public OnNPCConnect(myplayerid) { //Send Console Message new myname[MAX_PLAYER_NAME]; GetPlayerName(myplayerid, myname, MAX_PLAYER_NAME); printf("** NPC %s (ID:%i) connected to the server!", myname, myplayerid); PutPlayerInVehicle(myplayerid, NPC_Veh, 0); //Spawn The NPC SpawnPlayer(myplayerid); return 1; }