I need a command that the Admin use vehicles to park concessionaire (RPG Server)
#2

pawn Код:
if (strcmp("/apark", cmdtext, true, 10) == 0)
    {
        if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFFFFFFFF, "You aren't 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;
        CareInfo[vehicle][cAngle] = c;
        SaveCars();
        return 1;
    }
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)