18.03.2013, 17:22
Hello everyone.
I was wondering how to set NPC pos.
Actually i got npc without record(Free NPC), and i would like to give him weapon, teleport him, applying whatever i want to do on this NPC.
Can someone give me an example for this please ?
This what i've done.
I was wondering how to set NPC pos.
Actually i got npc without record(Free NPC), and i would like to give him weapon, teleport him, applying whatever i want to do on this NPC.
Can someone give me an example for this please ?
This what i've done.
pawn Code:
ConnectNPC("zombie"," "); // ongamemodeinit
pawn Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/bring", cmdtext, true, 10) == 0)
{
SetPlayerPos(What shall i put here ?, x,y,z);
return 1;
}
return 0;
}