ReDDBuLL Posted January 25, 2018 Posted January 25, 2018 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? Quote
sRk7 Posted January 25, 2018 Posted January 25, 2018 if(GetPlayerState(i) == PLAYER_STATE_DRIVER && InDealer[i] == 0 || GetPlayerState(i) == PLAYER_STATE_PASSENGER && InDealer[i] == 0) { Quote
ReDDBuLL Posted January 27, 2018 Author Posted January 27, 2018 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 Quote
RewardK Posted February 19, 2018 Posted February 19, 2018 (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 February 19, 2018 by Republican Reward K 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.