29.07.2012, 16:25
That's what i said. Anyways you have to create a script (filterscript or in the gamemode) which makes the npc's spawn. Otherwise they won't stay in the server.
Something like this (copy from gl_npcs):
NOTE: The NPC check is only if you create a filterscript, you don't want your players to get ignored ofcourse!
@Above: are you serious asking for a rep+ if you didn't even help him??
Something like this (copy from gl_npcs):
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
if(!IsPlayerNPC(playerid)) return 0;
new playername[64];
GetPlayerName(playerid,playername,sizeof(playername));
if(!strcmp(playername,"NPC1",true)) {
SetSpawnInfo(playerid,69,255,0.0,0.0,10.0,0.0,-1,-1,-1,-1,-1,-1);
}
return 0;
}
@Above: are you serious asking for a rep+ if you didn't even help him??