13.10.2009, 19:12
When i do ConnectNPC in my gamemode in OnGameModeInit, it sais that it doesnt know the function "ConnectNPC", but I do have a_npc included. what should i do?
Originally Posted by thuron
yup
|
if(IsPlayerNPC(playerid)) return 1;
Originally Posted by thuron
tryed that before, but where should i place it in the stuff thats already in there? just after the existing return 1;?
|
public OnPlayerRequestClass(playerid, classid)
{
if(IsPlayerNPC(playerid)) return 1;
new string[128];
PlayerPlaySound(playerid, 1068, 0.0, 0.0, 0.0);
PlayerInfo[playerid][pModel] = Peds[classid][0];