14.02.2010, 12:47
Код:
stock CreateStandingNPC(npcname[], Float:x, Float:y, Float:z, angle,skin)
{
new
npcid=GetPlayerID(npcname);
if(npcid != INVALID_PLAYER_ID && IsPlayerConnected(npcid))
{
if(IsPlayerNPC(npcid) && used < 100)
{
printf("[npc:update] (%i)%s NPC CREATED!!", npcid, npcname, used);
SetPlayerPos(npcid, x, y, z);
SetPlayerFacingAngle(npcid, angle);
npcs[used] = npcid;
++used;
SetPlayerSkin(npcid,skin);
return 1;
}
}
return 0;
}

