29.12.2015, 10:44
how to check if NPC is online base on NPC Name
I'm tryi'n to make a command to show all npc status maybe its online/offline
I'm tryi'n to make a command to show all npc status maybe its online/offline
new name[32], npcname[32], f=-1;
for(new i=0; i<MAX_PLAYERS; i++)
{
GetPlayerName(i, name, 32);
if(!strcmp(name, npcname, false) && strlen(name))
{
print("NPC IS ONLINE");
f=1;
}
}
if(f==-1) print("NPC IS OFFLINE");