All pastes #673629 Raw Edit

Anonym

public text v1 · immutable
#673629 ·published 2007-08-28 15:58 UTC
rendered paste body
forward CountAdmins();
public CountAdmins()
{
	new i,tmp[MAX_PLAYER_NAME];
	admincount = 0;
	for (i=0; i<MAX_PLAYERS; i++) {
		if (IsPlayerConnected(i)) {
			GetPlayerName(i,tmp, sizeof(tmp));
			if (strcmp(tmp,"OLIVER",false)==0 ||
				strcmp(tmp,"MaddDogg14",false)==0 ||
				strcmp(tmp,"Martok[GER]",false)==0 ||
				strcmp(tmp,"Caligula",false)==0 ||
				strcmp(tmp,"[GFSTD]Holzi",false)==0 ||
				strcmp(tmp,"Insua",false)==0 ||
				strcmp(tmp,"T4xs",false)==0 ||
				strcmp(tmp,"Mausal",false)==0 ||
				strcmp(tmp,"Knight2000",false)==0) {
					admincount++;
			}
		}
	}
	return 1;
}

public OnGameModeInit()
{
	// Don't use these lines if it's a filterscript
	SetGameModeText("Skyscraper Capturing v0.1alpha");
	AddPlayerClass(200,-2056.7520,689.3992,61.0839,307.6964,0,0,0,0,0,0); // testspieler
	AddStaticVehicle(522,-2056.3455,688.7802,60.4177,304.8624,6,25); // testbike

	SetTimer("CountAdmins",20000,1);
	return 1;
}