02.08.2011, 17:10
Quote:
With zcmd:
pawn Code:
|
Okay.
I will give you an example.
pawn Code:
if(PlayerInfo[playerid][pAdminLevel] >=1)
So, Annother command.
pawn Code:
CMD:flip(playerid,params[])
{
if(PlayerInfo[playerid][pAdminLevel] >=1)
{
if (IsPlayerInAnyVehicle(playerid))
{
new VehicleID, Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
VehicleID = GetPlayerVehicleID(playerid);
SetVehiclePos(VehicleID, X, Y, Z);
SetVehicleZAngle(VehicleID, 0);
return 1;
}
else return SendClientMessage(playerid, 0xD8D8D8FF, "You are not in any vehicle");
}
else return SendClientMessage(playerid, COLOR_RED, " You are not allowed to use this command");
}