13.11.2010, 09:28
(
Последний раз редактировалось Lorenc_; 15.11.2010 в 08:58.
Причина: I love retardedwolf
)
Dont worry about it
forward NpcSprint ( );
public OnPlayerSpawn ( playerid )
{
SetTimer ( "NpcSprint", 100, true );
return 1;
}
#define for_npcs(%1) for(new %1 = 499;%1 >= 450;%1--)
public NpcSprint ( )
{
new
Float:X,
Float:Y,
Float:Z;
foreach(Player, i)
{
GetPlayerPos ( i, X, Y, Z );
for_npcs ( npcid )
{
if ( IsPlayerInRangeOfPoint ( npcid, 150.0, X, Y, Z ) )
{
NPC_WalkTo ( npcid, X, Y, Z, 0 );
}
}
}
return 1;
}
foreach (Bot, botid)
{
SetPlayerPos(botid, 0.0, 0.0, 10.0); // Pile all NPCs in the centre of the world
}