[Ajuda]Carros de Times
#6

Don, olha agora meu code :
Code:
new VehID = GetPlayerVehicleID(playerid);
if(newstate == PLAYER_STATE_DRIVER)
{
for(new vP = 0; vP < sizeof(CarrosPM); vP++)
{
if(VehID == CarrosPM[vP] && GetPlayerTeam(playerid) != 2 || VehID == CarrosPM[vP] && GetPlayerTeam(playerid) != 3 || VehID == CarrosPM[vP] && GetPlayerTeam(playerid) != 4 || VehID == CarrosPM[vP] && GetPlayerTeam(playerid) != 5)
{
SendClientMessage(playerid,CINZA, "[x] Vocк nгo tem a chave deste carro.");
RemovePlayerFromVehicle(playerid);
}
}
}
if(newstate == PLAYER_STATE_DRIVER)
{
for(new vP = 0; vP < sizeof(CarrosGrove); vP++)
{
if(VehID == CarrosGrove[vP] && GetPlayerTeam(playerid) != 1 || VehID == CarrosGrove[vP] && GetPlayerTeam(playerid) != 3 || VehID == CarrosGrove[vP] && GetPlayerTeam(playerid) != 4 || VehID == CarrosGrove[vP] && GetPlayerTeam(playerid) != 5)
{
SendClientMessage(playerid,CINZA, "[x] Vocк nгo tem a chave deste carro.");
RemovePlayerFromVehicle(playerid);
}
}
}

if(newstate == PLAYER_STATE_DRIVER)
{
for(new vP = 0; vP < sizeof(CarrosBallas); vP++)
{
if(VehID == CarrosBallas[vP] && GetPlayerTeam(playerid) != 1 || VehID == CarrosBallas[vP] && GetPlayerTeam(playerid) != 2 || VehID == CarrosBallas[vP] && GetPlayerTeam(playerid) != 3 || VehID == CarrosBallas[vP] && GetPlayerTeam(playerid) != 5)
{
SendClientMessage(playerid,CINZA, "[x] Vocк nгo tem a chave deste carro.");
RemovePlayerFromVehicle(playerid);
}
}
}
if(newstate == PLAYER_STATE_DRIVER)
{
for(new vP = 0; vP < sizeof(CarrosAztecas); vP++)
{
if(VehID == CarrosAztecas[vP] && GetPlayerTeam(playerid) != 1 || VehID == CarrosAztecas[vP] && GetPlayerTeam(playerid) != 2 || VehID == CarrosAztecas[vP] && GetPlayerTeam(playerid) != 4 || VehID == CarrosAztecas[vP] && GetPlayerTeam(playerid) != 5)
{
SendClientMessage(playerid,CINZA, "[x] Vocк nгo tem a chave deste carro.");
RemovePlayerFromVehicle(playerid);
}
}
}

if(newstate == PLAYER_STATE_DRIVER)
{
for(new vP = 0; vP < sizeof(CCaminhoneiros); vP++)
{
if(VehID == CCaminhoneiros[vP] && GetPlayerTeam(playerid) != 1 || VehID == CCaminhoneiros[vP] && GetPlayerTeam(playerid) != 2 || VehID == CCaminhoneiros[vP] && GetPlayerTeam(playerid) != 3 || VehID == CCaminhoneiros[vP] && GetPlayerTeam(playerid) != 4)
{
SendClientMessage(playerid,CINZA, "[x] Vocк nгo tem a chave deste carro.");
RemovePlayerFromVehicle(playerid);
}
}
}
return 1;
}
Nгo deu nenhum aviso nem erro, porem in-game, vocк nгo consegue pegar nenhum carro, mesmo sendo do time.
Tem ideia do que pode ser?
Reply


Messages In This Thread
[Ajuda]Carros de Times - by IGp - 14.12.2013, 02:49
Re: [Ajuda]Carros de Times - by Xpectro - 14.12.2013, 02:54
Re: [Ajuda]Carros de Times - by Don_Speed - 14.12.2013, 08:52
Re: [Ajuda]Carros de Times - by IGp - 14.12.2013, 09:40
Re: [Ajuda]Carros de Times - by Don_Speed - 14.12.2013, 09:52
Re: [Ajuda]Carros de Times - by IGp - 14.12.2013, 13:29

Forum Jump:


Users browsing this thread: 2 Guest(s)