Jump to content

cmd:vre


alex6053
 Share

Recommended Posts

CMD:vrespawn(playerid, params[]) {

if(playerVariables[playerid][pAdminLevel] >= 1 && IsPlayerInAnyVehicle(playerid)) SetVehicleToRespawnEx(GetPlayerVehicleID(playerid));

return 1;

}

 

Salut ma puteti ajuta si pe mine sa modific comanda asta??? Asi vrea sa o fac cand tastez /vrespawn id la masina... Deoarece masina se respawneaza duar daca sunt eu in ia...

Link to comment
Share on other sites

omg, e chiar asa greu sa folosesti parametri?

new carID;
if(sscanf(params, "d", carID)); return SendClientMessage(playerid, -1, "bla bla");
SetVehicleToRespawnEx(carID);
Edited by L0K3D.
Link to comment
Share on other sites

 

omg, e chiar asa greu sa folosesti parametri?

new carID;
if(sscanf(params, "d", carID)); return SendClientMessage(playerid, -1, "bla bla");
SetVehicleToRespawnEx(carID);

Mio bagi si mie in comanda care tiam dato??? Ca mie imi da error...

Link to comment
Share on other sites

 

CMD:vrespawn(playerid, params[]) {
if(playerVariables[playerid][pAdminLevel] >= 1 && IsPlayerInAnyVehicle(playerid)) SetVehicleToRespawnEx(GetPlayerVehicleID(playerid));
return 1;
}
 
Salut ma puteti ajuta si pe mine sa modific comanda asta??? Asi vrea sa o fac cand tastez /vrespawn id la masina... Deoarece masina se respawneaza duar daca sunt eu in ia...

 

Uite comanda: http://pastebin.com/TW47DZz7

 

//Edit: P.S dupa 'id', adica aici: format(string, sizeof(string), "Ai respawnat masina cu id-ul: %d.",id"[AICI]); am pus ghilimelele " dupa id, unde scrie AICI. Le stergi si lasi id);

Edited by Daeso
  • Upvote 1
Link to comment
Share on other sites

  • 4 weeks later...

Uite comanda: http://pastebin.com/TW47DZz7

 

//Edit: P.S dupa 'id', adica aici: format(string, sizeof(string), "Ai respawnat masina cu id-ul: %d.",id"[AICI]); am pus ghilimelele " dupa id, unde scrie AICI. Le stergi si lasi id);

Ia fii atent daca fac #define playerVariables playerinfo merge?PS:Sunt pe tel,te intrebam.

Link to comment
Share on other sites

Ia fii atent daca fac #define playerVariables playerinfo merge?PS:Sunt pe tel,te intrebam.

De ce sa mai definesti cand poti sa pui direct PlayerInfo? Daca nu ai variabilele la fel, le schimbi. Ex:

if(playerVariables[playerid][pAdminLevel] >= 1)
si tu ai PlayerInfo si pAdmin. Pui
if(PlayerInfo[playerid][pAdmin] >= 1).
Sper ca ai inteles la ce ma refer. Edited by Daeso
  • Upvote 1
Link to comment
Share on other sites

CMD:dvehicle(playerid, params[]) {
    if(playerVariables[playerid][pAdminLevel] >= 1 && IsPlayerInAnyVehicle(playerid)) SetVehicleToRespawnEx(GetPlayerVehicleID(playerid));
    return 1;
}

Edited by Dimitru
  • Upvote 1
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. 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.