[Ajuda] Condiзгo motorista
#1

Alguem me ajuda como trocar esse if
if(IsPlayerInAnyVehicle(playerid)){

Pra um if sу de motorista, pra n funcionar com passageiro? Pq essa condiзгo vale tanto pro motorista qnt pro passageiro, queria q vale-se sу pro motorista...
Reply
#2

Vocк tem que verificar o state do jogador:
pawn Код:
if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
Reply
#3

Utilize essa verificaзгo:
PHP код:
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, -1"Vocк nгo estб como motorista deste veнculo."); 
Espero ter ajudado.
Reply
#4

Quote:
Originally Posted by kreison
Посмотреть сообщение
Vocк tem que verificar o state do jogador:
pawn Код:
if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
era isso msm, vlw +rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)