Jump to content
  • 0

Help Me


zNx.

Question

Am comanda :

Quote

CMD:v(playerid, params[])
{
    new vstring[254], vlock[30], cw = PlayerInfo[playerid][pCarKey], cw1 = PlayerInfo[playerid][pCarKey1], cw2 = PlayerInfo[playerid][pCarKey2], cw3 = PlayerInfo[playerid][pCarKey3];

    if(VehiclesInfo[cw][vLock] == 0 && VehiclesInfo[cw1][vLock] == 0)
    {
        vlock = "{2ED131}Unlocked";
    }
    if(VehiclesInfo[cw][vLock] == 1 && VehiclesInfo[cw1][vLock] == 1)
    {
        vlock = "{D41320}Locked";
    }
    if(PlayerInfo[playerid][pCarKey] >= 1 && PlayerInfo[playerid][pCarKey1] >= 1)
    {
        VControl[playerid] = 1;
        format(vstring, sizeof(vstring), "%s - %s\n%s - %s", NameCar[GetVehicleModel(VehiclesInfo[cw][vModel])-400], vlock, NameCar[GetVehicleModel(VehiclesInfo[cw1][vServerID])-400], vlock);
        ShowPlayerDialog(playerid, DIALOG_V, DIALOG_STYLE_LIST, "Vehicles:", vstring, "Select", "Close");
    }
    if(PlayerInfo[playerid][pCarKey] >= 1 && PlayerInfo[playerid][pCarKey1] == 0)
    {
        VControl[playerid] = 2;
        format(vstring, sizeof(vstring), "%s - %s", NameCar[GetVehicleModel(VehiclesInfo[cw][vServerID])-400], vlock);
        ShowPlayerDialog(playerid, DIALOG_V, DIALOG_STYLE_LIST, "Vehicles:", vstring, "Select", "Close");
    }
    if(PlayerInfo[playerid][pCarKey] == 0 && PlayerInfo[playerid][pCarKey1] >= 1)
    {
        VControl[playerid] = 3;
        format(vstring, sizeof(vstring), "%s - %s", NameCar[GetVehicleModel(VehiclesInfo[cw1][vServerID])-400], vlock);
        ShowPlayerDialog(playerid, DIALOG_V, DIALOG_STYLE_LIST, "Vehicles:", vstring, "Select", "Close");
    }
    if(PlayerInfo[playerid][pCarKey] >= 1 && PlayerInfo[playerid][pCarKey1] >= 1 && PlayerInfo[playerid][pCarKey2] >= 1 && PlayerInfo[playerid][pCarKey3] >= 1)
    {
        VControl[playerid] = 4;
        format(vstring, sizeof(vstring), "%s - %s\n%s - %s\n%s - %s\n%s - %s", NameCar[GetVehicleModel(VehiclesInfo[cw][vServerID])-400], vlock, NameCar[GetVehicleModel(VehiclesInfo[cw1][vServerID])-400], vlock, NameCar[GetVehicleModel(VehiclesInfo[cw2][vServerID])-400], vlock, NameCar[GetVehicleModel(VehiclesInfo[cw3][vServerID])-400], vlock);
        ShowPlayerDialog(playerid, DIALOG_V, DIALOG_STYLE_LIST, "Vehicles:", vstring, "Select", "Close");
    }
    return 1;
 

Care cand o scriu pe server imi zice ca nu exista comanda,dar defapt comanda e creata.

PS:Comanda nu e in public OnPlayerCommandPerformed".

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.