14.12.2013, 13:29
Don, olha agora meu code :
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?
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; }
Tem ideia do que pode ser?