[Easy question] NPC problem
#1

I did the NPC according to the tut of KC. and still nothing happens.

I don't get the message of the connection or anything of that, what is wrong?

that's the main gamemode
PHP код:
public OnGameModeInit()
{
    
ConnectNPC("Meeks""Pro");
    
// Don't use these lines if it's a filterscript
    
SetGameModeText("Blank Script");
    
AddPlayerClass(01958.37831343.157215.3746269.1425000000);
    return 
1;
}
public 
OnPlayerSpawn(playerid)
{
    if(
IsPlayerNPC(playerid))
    {
        new 
npcname[MAX_PLAYER_NAME];
        
GetPlayerName(playeridnpcnamesizeof(npcname));
        if(!
strcmp(npcname"Meeks"true))
        {
            
SetPlayerSkin(playerid2);
        }
        return 
1;
    }
    return 
1;

here is the "mini" record pawn file it's called "Pro"

PHP код:
#define RECORDING "Pro" //This is the filename of your recording without the extension.
#define RECORDING_TYPE 2 //1 for in vehicle and 2 for on foot.
#include <a_npc>
main(){}
public 
OnRecordingPlaybackEnd() StartRecordingPlayback(RECORDING_TYPERECORDING);
#if RECORDING_TYPE == 1
  
public OnNPCEnterVehicle(vehicleidseatidStartRecordingPlayback(RECORDING_TYPERECORDING);
  public 
OnNPCExitVehicle() StopRecordingPlayback();
#else
  
public OnNPCSpawn() StartRecordingPlayback(RECORDING_TYPERECORDING);
#endif 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)