DraQ3U Posted August 8, 2017 Posted August 8, 2017 Salut, ma puteti ajuta si pe mine cu comanda /speed, as vrea sa iti dea un fel de boost si sa urce de la 70km/h la 200km/h sau ceva de genul, cum as putea face asta, daca aveti comanda mi-o puteti da va rog frumos? Multumesc! Quote
CreativeREAL Posted August 8, 2017 Posted August 8, 2017 new SpeedBoost[MAX_PLAYERS]; si adaugi comanda CMD:speed(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] >= 6) { if(SpeedBoost[playerid]) { SpeedBoost[playerid] = 0; } else { SpeedBoost[playerid] = 1; } } return 1; } Quote
Un4m3d_Hokage Posted August 8, 2017 Posted August 8, 2017 new SpeedBoost[MAX_PLAYERS]; si adaugi comanda CMD:speed(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] >= 6) { if(SpeedBoost[playerid]) { SpeedBoost[playerid] = 0; } else { SpeedBoost[playerid] = 1; } } return 1; } Si cu ce-l ajuta asta? Doar ii schimba valoarea unei variabile.. Foloseste-te de SetVehicleVelocity Quote
DraQ3U Posted August 10, 2017 Author Posted August 10, 2017 new SpeedBoost[MAX_PLAYERS]; si adaugi comanda CMD:speed(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] >= 6) { if(SpeedBoost[playerid]) { SpeedBoost[playerid] = 0; } else { SpeedBoost[playerid] = 1; } } return 1; } Pai si daca as vrea sa ma boosteze cum as face asta, daca comanda schimba doar valoarea varibilei.. Daca as face cum mi-ai arat ar insemna ca ar fi boost mereu si nu doar cand vreau eu, gen cand am speed boost activat si apas tasta f sa ma boosteze. Quote
Un4m3d_Hokage Posted August 11, 2017 Posted August 11, 2017 Pai si daca as vrea sa ma boosteze cum as face asta, daca comanda schimba doar valoarea varibilei.. Daca as face cum mi-ai arat ar insemna ca ar fi boost mereu si nu doar cand vreau eu, gen cand am speed boost activat si apas tasta f sa ma boosteze. SetVehicleVelocity, foloseste-te de el.. Quote
EAX.. Posted August 12, 2017 Posted August 12, 2017 new SpeedBoost[MAX_PLAYERS]; si adaugi comanda CMD:speed(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] >= 6) { if(SpeedBoost[playerid]) { SpeedBoost[playerid] = 0; } else { SpeedBoost[playerid] = 1; } } return 1; } Ai copiat gresit de aici: http://www.pawno.ro/index.php/Thread/4057-Tutorial-2-Crearea-comenzii-speed-speed-boost/ Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.