16.04.2011, 14:50
(
Last edited by Fab10; 16/04/2011 at 05:25 PM.
)
Dynamic NPC Spawner
(My first filterscript)
Function:
Code:
CreateNPC(name[25],skin,Float:x,Float:y,Float:z,Float:a,interior,vw)
Installation:
Put npc_sistem.pwn and npc_sistem.amx in your filterscripts folder.
Put npcbot.amx in your npcmodes folder (Sorry i have lost pwn).
Set maxnpc and npc_sistem in server.cfg
Put in your gamemode callback OnPlayerConnect and OnPlayerSpawn this code:
Code:
if(IsPlayerNPC(playerid)) return 1;
Code:
if(IsPlayerNPC(playerid)) return SpawnPlayer(playerid);
or
Alternative Download
Sorry for bad english, but i italian scripter