Jump to content

Recommended Posts

Posted

Hei, am luat gm B****d de la Edison (sa nu fac reclama), si faza e ca speedometerul apare doar soferului, iar eu vreau sa apara si pasagerilor.

 

 

https://pastebin.com/zF8G19yj aici este functia.

 

Am incercat sa fac la if(GetPlayerState(i) == PLAYER_STATE_DRIVER && InDealer == 0) am incercat sa fac  if(GetPlayerState(i) == PLAYER_STATE_DRIVER || GetPlayerState(i) == PLAYER_STATE_PASSENGER && InDealer == 0) si nu merge.

 

Cum pot face sa apara si pasagerilor?

 

 

Posted

if(GetPlayerState(i) == PLAYER_STATE_DRIVER && InDealer[i] == 0 || GetPlayerState(i) == PLAYER_STATE_PASSENGER && InDealer[i] == 0) {
Posted
if(GetPlayerState(i) == PLAYER_STATE_DRIVER && InDealer[i] == 0 || GetPlayerState(i) == PLAYER_STATE_PASSENGER && InDealer[i] == 0) {

Nu merge nici asa, am incercat in toate felurile posibile, am pus jos gen

if(--------)

{

}

else if(-------)

{

}

 

nu merge in niciun fel si nu imi dau seama de ce, si am schimbat si restrictiile si tot nu merge

  • 3 weeks later...
Posted (edited)

Folosete IsPlayerInAnyVehicle, aceasta functie returneaza 1 (spune ca "da, este") si daca este pasager jucatorul. Nu te mai incurca cu GetPlayerState.

Ex:

if(IsPlayerInAnyVehicle(i) && !InDealer[i])
{
    ....
}
Edited by Republican Reward K

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.

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

moduri samp