Dynamic Vehicles can't create more than one.
#10

Quote:
Originally Posted by RenovanZ
Посмотреть сообщение
Your createvehicle command of course.
PHP код:
CMD:dvcreate(playeridparams[])
{
    if(
PlayerInfo[playerid][pAdmin] >= 4)
    {
        new
                
iVehicle,
                
iColors[2],
                
string[128];
        if(
sscanf(params"iii"iVehicleiColors[0], iColors[1])) {
            return 
SendClientMessageEx(playeridCOLOR_GREY"USAGE: /dvcreate [model ID] [color 1] [color 2]");
        }
        if(!(
400 iVehicle 612)) return SendClientMessage(playeridCOLOR_GRAD2"Invalid Model ID");
        else if(
IsATrain(iVehicle)) {
                
SendClientMessageEx(playeridCOLOR_GREY"Trains cannot be spawned during runtime.");
            }
        else if(!(
<= iColors[0] <= 255 && <= iColors[1] <= 255)) {
            
SendClientMessageEx(playeridCOLOR_GRAD2"Invalid color specified (IDs start at 0, and end at 255).");
        }
        
mysql_function_query(MainPipeline"SELECT id from `groupvehs` WHERE vModel = 0 LIMIT 1;"true"DynVeh_CreateDVQuery""iiii"playeridiVehicleiColors[0], iColors[1]);
        
format(stringsizeof(string), "%s has created a dynamic vehicle."GetPlayerNameEx(playerid));
        
Log("logs/dv.log"string);
    }
    else return 
SendClientMessage(playeridCOLOR_GRAD2"You're not authorized to use this command.");
    return 
1;

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)