23.08.2014, 06:09
Change
TO
Tell me if i helped.
pawn Code:
CMD:acar(playerid, params[])
{
if(PlayerInfo[playerid][AdminLevel] >= 1)
{
if(PlayerInfo[playerid][World] == DMWorldID) return SendClientMessage(playerid, COLOR_RED, "ERROR: You cannot use vehicle in the Deathmatch World");
if(PlayerInfo[playerid][World] == TDMWorldID) return SendClientMessage(playerid, COLOR_RED, "ERROR: You cannot use this command in this World");
if(IsPlayerInAnyVehicle(playerid)) DestroyVehicle(GetPlayerVehicleID(playerid));
new Float:x, Float:y, Float:z, Float:angle, world, interior, VehicleID;
GetPlayerPos(playerid, x, y, z);
world = GetPlayerVirtualWorld(playerid);
interior = GetPlayerInterior(playerid);
GetPlayerFacingAngle(playerid, angle);
VehicleID = CreateVehicle(411, x, y, z, angle, -1, -1, 60);
LinkVehicleToInterior(VehicleID, interior);
SetVehicleVirtualWorld(VehicleID, world);
PutPlayerInVehicle(playerid, VehicleID, 0);
SendCommandToAdmins(playerid,"/acar");
}
else return SendClientMessage(playerid, COLOR_RED, "ERROR: You must be Administrator Level 1 to use this Command!");
return 1;
}
pawn Code:
CMD:acar(playerid, params[])
{
if(!PlayerInfo[playerid][AdminLevel]) return SendClientMessage(playerid, COLOR_RED, "ERROR: You must be Administrator Level 1 to use this Command!");
if(PlayerInfo[playerid][World] == DMWorldID) return SendClientMessage(playerid, COLOR_RED, "ERROR: You cannot use vehicle in the Deathmatch World");
if(PlayerInfo[playerid][World] == TDMWorldID) return SendClientMessage(playerid, COLOR_RED, "ERROR: You cannot use this command in this World");
if(IsPlayerInAnyVehicle(playerid)) DestroyVehicle(GetPlayerVehicleID(playerid));
new Float:x, Float:y, Float:z, Float:angle, world, interior, VehicleID;
GetPlayerPos(playerid, x, y, z);
world = GetPlayerVirtualWorld(playerid);
interior = GetPlayerInterior(playerid);
GetPlayerFacingAngle(playerid, angle);
VehicleID = CreateVehicle(411, x, y, z, angle, -1, -1, 60);
LinkVehicleToInterior(VehicleID, interior);
SetVehicleVirtualWorld(VehicleID, world);
PutPlayerInVehicle(playerid, VehicleID, 0);
SendCommandToAdmins(playerid,"/acar");
return 1;
}