Need help with command [REP+++]
#1

Hey guys, I've a little problem with a command createcdveh, it means create a dealership vehicle.
I can't make more than 10 vehicles somehow, can anyone help with the command?

This is it:
Код:
CMD:createcdveh(playerid, params[])
{
    if (PlayerInfo[playerid][pAdmin] < 1337)
	{
        SendClientMessageEx(playerid, COLOR_GREY, " You are not allowed to use this command.");
        return 1;
    }

    new string[128], price, dealershipid, modelid;
    if(sscanf(params, "ddd", price, dealershipid, modelid)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /createcdveh [price] [dealership] [modelid]");

    new Float:X,Float:Y,Float:Z,Float:A;
    GetPlayerPos(playerid,X,Y,Z);
    GetPlayerFacingAngle(playerid, A);
    new cdvehicleid = CreateCarDealershipVehicle(dealershipid, modelid, X, Y, Z, A, price);
    if(cdvehicleid == -1)
	{
        SendClientMessageEx(playerid, COLOR_GREY, "ERROR: cdVehicles limit reached.");
    }
    else
	{
        format(string, sizeof(string), " SYSTEM: Car dealership vehicle created (M-ID %d)(ID %d)", modelid, cdvehicleid);
        SendClientMessageEx(playerid, COLOR_GRAD1, string);
    }
    return 1;
}
Reply


Messages In This Thread
Need help with command [REP+++] - by ConnorFisher - 07.12.2013, 09:21
Re: Need help with command [REP+++] - by Voxel - 07.12.2013, 09:53
Re: Need help with command [REP+++] - by Loot - 07.12.2013, 09:57
Re: Need help with command [REP+++] - by ConnorFisher - 07.12.2013, 10:09
Re: Need help with command [REP+++] - by ConnorFisher - 07.12.2013, 10:14
Re: Need help with command [REP+++] - by ConnorFisher - 07.12.2013, 15:58

Forum Jump:


Users browsing this thread: 1 Guest(s)