18.03.2013, 17:52
Assuming you have 1 npc on whole server:
pawn Code:
new ServantNPC;
//(...)
public OnPlayerConnect(playerid) {
if(IsPlayerNPC(playerid)) ServantNPC = playerid;
return 1;
}
//(...)
public OnPlayerCommandText(playerid, cmdtext[])
{
if (!strcmp("/bring", cmdtext, true, 6)) {
SetPlayerPos(ServantNPC, x,y,z);
return 1;
}
return 0;
}