03.11.2010, 13:57
Ok from the title I think you get the ideea ... I want to spawn a NPC using a cmd like /npcspawn.
Here is the ideea:
Or something like that... to spawn the NPC on my position or at a coordonate... but dont know how to name the NPC id
Here is the ideea:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/npcspawn", true)==0)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
SetPlayerPos(What to do here??, x, y, z);
SetPlayerSkin(What to do here??,171);
}
return 0;
}