Jump to content

Question

Posted

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;
}

4 answers to this question

Recommended Posts

  • 0
Posted (edited)
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.
  • 0
Posted
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);

  • 0
Posted

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 . 

  • 0
Posted (edited)
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.