All pastes #619124 Raw Edit

Stuff

public cpp v1 · immutable
·published 2007-07-14 14:01 UTC
rendered paste body
stock PlayerList(users) { // Example: PlayerList(30) would show 30 users or PlayerList(MAX_PLAYERS) would show them all	new players = Array();	for(new i = 0; i <= USERS; i++) { // Loop through	    if(IsPlayerConnected(i)) { // Check if they're connected	        players[i] = PlayerName(i);		 }	}	return players; // Return the array}stock PlayerName(playerid) {	new name[MAX_PLAYER_NAME]; // Make the variable	GetPlayerName(playerid, name, sizeof(name)); // Get the name and save to the variable	return name; // Return the name}