Jump to content
  • 0

Problema comanda Bullhorn


Adrian FW

Question

Am incercat sa fac comanda /bullhorn pentru vehiculele personale , dar imi da erroare 

Image: https://imgur.com/a/mktZ37L

YCMD:bullhorn(playerid, params[], help) {
    if(PlayerInfo[playerid][pVip] == 1) return 1;
    if(!IsPlayerInAnyVehicle(playerid)) return 1;
    if(InRaceArena[playerid] == 1 && PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid, COLOR_LGREEN, "Nu ai voie sa folosesti aceasta comanda atata timp cat esti in arena de curse!");
    new object1 = CreateObject(19314, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
    new object2 = CreateObject(19314, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(object1, idd, 206.44, 1767.66, 17.38,0.000000,0.000000,0.000000);
    AttachObjectToVehicle(object2, idd, 206.44, 1767.66, 17.38,0.000000,0.000000,0.000000);
    SCM(playerid, COLOR_YELLOW, "Comanda executata cu succes.");
    return 1;
}

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0
Acum 3 ore, Adrian FW a spus:

Am incercat sa fac comanda /bullhorn pentru vehiculele personale , dar imi da erroare 

Image: https://imgur.com/a/mktZ37L

YCMD:bullhorn(playerid, params[], help) {
    if(PlayerInfo[playerid][pVip] == 1) return 1;
    if(!IsPlayerInAnyVehicle(playerid)) return 1;
    if(InRaceArena[playerid] == 1 && PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid, COLOR_LGREEN, "Nu ai voie sa folosesti aceasta comanda atata timp cat esti in arena de curse!");
    new object1 = CreateObject(19314, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
    new object2 = CreateObject(19314, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(object1, idd, 206.44, 1767.66, 17.38,0.000000,0.000000,0.000000);
    AttachObjectToVehicle(object2, idd, 206.44, 1767.66, 17.38,0.000000,0.000000,0.000000);
    SCM(playerid, COLOR_YELLOW, "Comanda executata cu succes.");
    return 1;
}

Incearca 

YCMD:bullhorn(playerid, params[], help) {
    if(PlayerInfo[playerid][pVip] == 1) return 1;
    if(!IsPlayerInAnyVehicle(playerid)) return 1;
    if(InRaceArena[playerid] == 1 && PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid, COLOR_LGREEN, "Nu ai voie sa folosesti aceasta comanda atata timp cat esti in arena de curse!");
    new object1 = CreateObject(19314, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
    new object2 = CreateObject(19314, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(object1, id, 206.44, 1767.66, 17.38,0.000000,0.000000,0.000000);
    AttachObjectToVehicle(object2, id, 206.44, 1767.66, 17.38,0.000000,0.000000,0.000000);
    SCM(playerid, COLOR_YELLOW, "Comanda executata cu succes.");
    return 1;
}

Edited by RGEO.
Link to comment
Share on other sites

  • 0
Acum 6 ore, Adrian FW a spus:

Am incercat sa fac comanda /bullhorn pentru vehiculele personale , dar imi da erroare 

Image: https://imgur.com/a/mktZ37L

YCMD:bullhorn(playerid, params[], help) {
    if(PlayerInfo[playerid][pVip] == 1) return 1;
    if(!IsPlayerInAnyVehicle(playerid)) return 1;
    if(InRaceArena[playerid] == 1 && PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid, COLOR_LGREEN, "Nu ai voie sa folosesti aceasta comanda atata timp cat esti in arena de curse!");
    new object1 = CreateObject(19314, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
    new object2 = CreateObject(19314, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(object1, idd, 206.44, 1767.66, 17.38,0.000000,0.000000,0.000000);
    AttachObjectToVehicle(object2, idd, 206.44, 1767.66, 17.38,0.000000,0.000000,0.000000);
    SCM(playerid, COLOR_YELLOW, "Comanda executata cu succes.");
    return 1;
}

Dupa ---》

if(InRaceArena[playerid] == 1 && PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid, COLOR_LGREEN, "Nu ai voie sa folosesti aceasta comanda atata timp cat esti in arena de curse!");

Mai adaugi ---》new idd = GetPlayerVehicleID(playerid);

Link to comment
Share on other sites

  • 0
Acum 2 ore, Adrian FW a spus:

Am rezolvat problema , dar coordonatele care le-am pus eu cu mapeditor nu sunt bune , trebuie coordonate offset  .  Si nu stiu cum sa le fac . 

Foloseste asta http://forum.sa-mp.com/showthread.php?t=272552

 

sau creezi tu comenzi ca sa modifici pozitiile si/sau rotatiile. Mai lejer cred ca iti e cu prima varianta

Edited by valivaly96
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.