Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // By pds2k12.
- #define ForeachNPC(%0,%1) \
- new %0; while(++%0 < %1) if(IsPlayerNPC(%0)) return true; else return false;
- // Sample Usage
- main()
- {
- ForeachNPC(i, GetMaxPlayers())
- {
- Kick(i);
- }
- ForeachNPC(x, MAX_PLAYERS)
- {
- Kick(x);
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment