23.09.2013, 00:38
Command /apark not work,When I put /apark appears: Server: Unknown Command, Help me.
Credits CMD: DanishHaq
This command is used for administrators park cars the Dealership.
Credits CMD: DanishHaq
This command is used for administrators park cars the Dealership.
pawn Код:
if (strcmp("/apark", cmdtext, true, 10) == 0)
{
GetPlayerName(playerid, sendername, 256);
if (PlayerInfo[playerid][pAdmin] >= MASTER)
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFFFFFFFF, "You are not in a vehicle.");
new vehicle = GetPlayerVehicleID(playerid);
new Float:x, Float:y, Float:z, Float:c;
GetVehiclePos(vehicle, Float:x, Float:y, Float:z);
GetVehicleZAngle(vehicle, Float:c);
CarInfo[vehicle][cLocationx] = x;
CarInfo[vehicle][cLocationy] = y;
CarInfo[vehicle][cLocationz] = z;
CarInfo[vehicle][cAngle] = c;
SaveCars();
return 1;
}