Why is this cmd not working?
#2

Код:
CMD:veh(playerid, params[])
{
    new vehid;
    if (sscanf(params, "i", vehid)) {
        SendClientMessage(playerid, -1, "[USAGE]: /veh [vehid 400 - 611]");
        return 1;
    }
    if (vehid < 400 || vehid > 611) {
        SendClientMessage(playerid, -1, "[USAGE]: /veh [vehid 400 - 611]");
        return 1;
    }
    new Float:x, Float:y, Float:z, Float:a, Float:tA;
    GetPlayerPos(playerid, x, y, z);
    GetPlayerFacingAngle(playerid, a);
    tA = a < 270.0 ? a + 90.0 : a - 270.0;
    CreateVehicle(vehid, x + (floatsin(-a, degrees) * 5.0), y + (floatcos(-a, degrees) * 5.0), z, tA, 0, 0, 0);
    return 1;
}
Reply


Messages In This Thread
Why is this cmd not working? - by aKnoxx - 24.12.2018, 06:26
Re: Why is this cmd not working? - by BeckzyBoi - 24.12.2018, 06:34
Re: Why is this cmd not working? - by aKnoxx - 24.12.2018, 06:39
Re: Why is this cmd not working? - by BeckzyBoi - 24.12.2018, 06:42
Re: Why is this cmd not working? - by aKnoxx - 24.12.2018, 06:45
Re: Why is this cmd not working? - by BeckzyBoi - 24.12.2018, 06:51
Re: Why is this cmd not working? - by aKnoxx - 24.12.2018, 06:54
Re: Why is this cmd not working? - by BeckzyBoi - 24.12.2018, 06:55
Re: Why is this cmd not working? - by aKnoxx - 24.12.2018, 07:02

Forum Jump:


Users browsing this thread: 1 Guest(s)