All pastes #588144 Raw Edit

Stuff

public cpp v1 · immutable
#588144 ·published 2007-06-25 11:28 UTC
rendered paste body
//// When player requests to spawn//public OnPlayerRequestSpawn(playerid) {	if(!IsPlayerRegistered(playerid)) {		if(sentmsg_spawn[playerid] == 0) {			sentmsg_spawn[playerid] = 1;			SendClientMessage(playerid, COLOR_YELLOW, "You need to be registered to play! Type /register to register.");			GameTextForPlayer(playerid, "Register please!", 3, 5000);			SetTimerEx("ResetNoSpam",1000,0,"%i",playerid);			return false;		}	} else if(!IsPlayerLoggedIn(playerid)){		if(sentmsg_spawn[playerid] == 0) {			sentmsg_spawn[playerid] = 1;			SendClientMessage(playerid, COLOR_YELLOW, "You need to be registered to play! Type /register to register.");			GameTextForPlayer(playerid, "Register please!", 3, 5000);			SetTimerEx("ResetNoSpam",1000,0,"%i",playerid);			return false;		}	} else if(SpawnLock == 1) {	    if(sentmsg_spawn[playerid] == 0) {	 		sentmsg_spawn[playerid] = 1;		    SendClientMessage(playerid, COLOR_YELLOW, "The admins have blocked all spawning.");	 		GameTextForPlayer(playerid, "Blocked from spawning.~n~Read chat for details.", 3, 5000);	 		SetTimerEx("ResetNoSpam",1000,0,"%i",playerid);			return false;		}	}	return 1;}//// Unset the no spam//public ResetNoSpam(playerid) {	sentmsg_spawn[playerid] = 0;}