All pastes #337105 Raw Edit

Stuff

public text v1 · immutable
·published 2007-02-02 14:41 UTC
rendered paste body
if(strcmp(cmdtext,"/flip",true)==0) {
	if (LoggedIn == 1) {
		if (Level >= 8) {
		    if (IsPlayerInAnyVehicle(playerid)) {
				new Float:X,Float:Y,Float:Z,Float:Angle;
				GetPlayerPos(playerid,X,Y,Z);
				GetPlayerFacingAngle(playerid,Angle);
				SetVehiclePos(GetPlayerVehicleID(playerid),X,Y,Z + 1);
				SetVehicleZAngle(GetPlayerVehicleID(playerid),Angle);
				SendClientMessage(playerid,yellow,"You have flipped your vehicle.");
			} else { SendClientMessage(playerid,red,"You must be in a vehicle first."); }
		} else { SendClientMessage(playerid,red,"You must have administrator level 8 to use this command."); }
	} else { SendClientMessage(playerid,red,"You must be logged in as an administrator to access this command."); }
return 1;
}