[Ajuda] Como usar essa funзгo?
#1

O que eu to fazendo de errado pra detectar se tem alguйm dentro do veiculo:

Код:
if(GetVehicleDriver(carid[playerid]) < 0) return SendClientMessage(playerid, COLOR_RED, "Vocк nгo pode spawnar um veiculo ocupado!");
Код:
stock GetVehicleDriver(vid) {
	for(new i; i < GetMaxPlayers(); i++) {
		if(!IsPlayerConnected(i)) continue;
		if(GetPlayerVehicleID(i) != vid) continue;
		if(GetPlayerState(i) != PLAYER_STATE_ONFOOT) return i;
	}
    return INVALID_PLAYER_ID;
}
Reply


Messages In This Thread
Como usar essa funзгo? - by warriorfrog - 09.12.2015, 15:36
Re: Como usar essa funзгo? - by JonathanFeitosa - 09.12.2015, 17:45
Re: Como usar essa funзгo? - by gmstrikker - 09.12.2015, 19:24
Re: Como usar essa funзгo? - by warriorfrog - 10.12.2015, 02:17
Re: Como usar essa funзгo? - by rjjj - 10.12.2015, 02:40

Forum Jump:


Users browsing this thread: 1 Guest(s)