[Help] How to spawn a NPC by cmd
#1

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:

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;
}
Or something like that... to spawn the NPC on my position or at a coordonate... but dont know how to name the NPC id
Reply


Messages In This Thread
[Help] How to spawn a NPC by cmd - by Rainbow_Six - 03.11.2010, 13:57
Re: [Help] How to spawn a NPC by cmd - by Rainbow_Six - 03.11.2010, 15:58
Re: [Help] How to spawn a NPC by cmd - by boelie - 03.11.2010, 16:21
Re: [Help] How to spawn a NPC by cmd - by Rainbow_Six - 03.11.2010, 16:37

Forum Jump:


Users browsing this thread: 2 Guest(s)