05.04.2015, 17:38
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
here is the "mini" record pawn file it's called "Pro"
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(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
return 1;
}
public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid))
{
new npcname[MAX_PLAYER_NAME];
GetPlayerName(playerid, npcname, sizeof(npcname));
if(!strcmp(npcname, "Meeks", true))
{
SetPlayerSkin(playerid, 2);
}
return 1;
}
return 1;
}
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_TYPE, RECORDING);
#if RECORDING_TYPE == 1
public OnNPCEnterVehicle(vehicleid, seatid) StartRecordingPlayback(RECORDING_TYPE, RECORDING);
public OnNPCExitVehicle() StopRecordingPlayback();
#else
public OnNPCSpawn() StartRecordingPlayback(RECORDING_TYPE, RECORDING);
#endif