Jump to content

Mod de joc - Redtimes.eu


buNNyy
 Share

Recommended Posts

48 minutes ago, darknessmode said:

CMD:spawncar(playerid, params[]) {
    if(PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid, COLOR_WHITE, AdminOnly);
    new model, color1, color2;
    if(sscanf(params, "iii", model, color1, color2)) return syntaxMessage(playerid, "/ecar <Model> <color1> <color2>");
    if(model < 400 || model > 611) return SCM(playerid,COLOR_WHITE, "Invalid car ID.");
    new Float:X,Float:Y,Float:Z;
    GetPlayerPos(playerid, X,Y,Z);
    new carid = CreateVehicleEx(model, X,Y,Z, 0.0,  color1, color2, 300);
    Gas[carid] = 100;
    SetVehicleNumberPlate(carid, "AdmCar");
    Carspawn[carid] = carid;
    new vehicles = GetVehicleModel(carid) - 400;
    submitToAdmins(COLOR_AMSG, "/ecar: %s has spawned a %s (vehicle ID %d).", 1,  GetName(playerid), aVehicleNames[model - 400],carid);
    LinkVehicleToInterior(carid, GetPlayerInterior(playerid));
    SetVehicleVirtualWorld(carid, GetPlayerVirtualWorld(playerid));
    PutPlayerInVehicleEx(playerid, carid, 0);
    return 1; 
}

 

 

nu stiu daca la asta te referi, amandoua erori se refera la cele cu albastru

sterge return syntaxmessage si submitToadmins(color_amsg alea

Link to comment
Share on other sites

1 hour ago, StefanRE said:

sterge return syntaxmessage si submitToadmins(color_amsg alea

poftim comanda rezolvata

 

YCMD:spawncar(playerid, params[], help) {
    if(PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid, COLOR_WHITE, AdminOnly);
    new model,string[180], color1, color2;
    if(sscanf(params, "iii", model, color1, color2)) return SCM(playerid,COLOR_GREY, "USAGE: {FFFFFF}/spawncar <Model> <color1> <color2>");
    if(model < 400 || model > 611) return SCM(playerid,COLOR_WHITE, "Invalid car ID.");
    new Float:X,Float:Y,Float:Z;
    GetPlayerPos(playerid, X,Y,Z);
    new carid = CreateVehicleEx(model, X,Y,Z, 0.0,  color1, color2, 300);
    Gas[carid] = 100;
    SetVehicleNumberPlate(carid, "GM : Ionutg_");
    Carspawn[carid] = carid;
    new vehicles = GetVehicleModel(carid) - 400;
    format(string, sizeof(string), "({FF0000}Admin Info{FFFFFF}) %s a spawnat un %s (%d). Total vehicule spawnate: %d.",GetName(playerid),aVehicleNames[vehicles],carid, CountSpawnCars());
    if(GetPVarInt(playerid, "Cover") == 0) SendAdminMessage(COLOR_WHITE, string, 2);
    LinkVehicleToInterior(carid, GetPlayerInterior(playerid));
    SetVehicleVirtualWorld(carid, GetPlayerVirtualWorld(playerid));
    PutPlayerInVehicleEx(playerid, carid, 0);
    return 1;
}   

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...
Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...