Jump to content

Comanda /speed


DraQ3U
 Share

Recommended Posts

  • 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!

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

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

 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.