NPC id
#4

pawn Код:
public OnPlayerConnect( playerid )
{
    new
        count = 0;

    for( new i = 0; < MAX_PLAYERS; i ++ )
    {
        if( IsPlayerNPC( i ) )
        {
             count ++;
        }
    }
    printf( "There are %d connected NPCs!", count );
    // Rest
    return 1;
}
Reply


Messages In This Thread
NPC id - by Richie - 05.02.2012, 22:44
Re: NPC id - by Ballu Miaa - 05.02.2012, 23:57
Re: NPC id - by Richie - 06.02.2012, 09:06
Re: NPC id - by Konstantinos - 06.02.2012, 09:25
Re: NPC id - by Vince - 06.02.2012, 09:33
Re: NPC id - by Konstantinos - 06.02.2012, 09:42

Forum Jump:


Users browsing this thread: 1 Guest(s)