All pastes #963161 Raw Edit

Miscellany

public lua v1 · immutable
#963161 ·published 2008-03-30 08:24 UTC
rendered paste body
--Code Afunction Player_OnUnspec(plyr) -- player / Returns boolean true of false, whether to allow player to unspec.player to unspec.	if not (go_player == nil or go_player[plyr.name] == nil or go_player[plyr.name]['faction'] == nil or go_player[plyr.name]['faction']['name'] == nil) then		plyr:unspec(go_player[plyr.name]['faction']['name'], 'test')		checkTurretAssign(plyr)		if (sendToBindSpot(plyr.name) == false) then			plyr:message('Failed to send you to least bound spot, please contact an Administrator.')		end		else		return true	end		return falseend--Code Bfunction Player_OnVehicleChange(plyr, fromvech, tovech, action) -- player / Returns boolean true of false, whether to allow player to unspec.	if (action == 2) then		if not (go_player == nil or go_player[plyr.name] == nil or go_player[plyr.name]['faction'] == nil or go_player[plyr.name]['faction']['name'] == nil) then			plyr:unspec(go_player[plyr.name]['faction']['name'], 'test')			checkTurretAssign(plyr)			if (sendToBindSpot(plyr.name) == false) then				plyr:message('Failed to send you to least bound spot, please contact an Administrator.')			end			else			return true		end				return false	end	return trueend