[HELP] Check if NPC is Online
#1

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
Reply
#2

Код:
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");
Fill the "npcname" variable with your NPC name.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)