I can't see my NPC
#3

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?

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; 
}
Reply


Messages In This Thread
I can't see my NPC - by alexis2210 - 23.01.2017, 02:00
Re: I can't see my NPC - by Nate4 - 23.01.2017, 04:10
Respuesta: I can't see my NPC - by alexis2210 - 23.01.2017, 19:49
Respuesta: I can't see my NPC - by alexis2210 - 23.01.2017, 20:07

Forum Jump:


Users browsing this thread: 1 Guest(s)