Пређи на главни садржај

NPC_GetPathCount

Упозорење

Додато у верзији omp v1.5.8.3079. Ова ставка не ради у старијим верзијама. Врста: функција.

Description​

Gets the total number of NPC paths currently existing on the server.

Returns​

Returns the number of paths that exist on the server.

Examples​

public OnPlayerCommandText(playerid, cmdtext[])
{
if (!strcmp(cmdtext, "/checkpathcount", true))
{
new count = NPC_GetPathCount();

SendClientMessage(playerid, 0x00FF00FF, "Total NPC paths: %d", count);
return 1;
}
return 0;
}

Notes​

  • This counts all paths, whether they have points or not
  • Empty paths (no waypoints) are still counted