20.02.2013, 22:00
Bom galera do forum samp , ja tentei de tudo ! , que eu podia fazer , mas nada ... nao estou conseguindo definir os veiculos de Org . quando o player entra no veiculo nao aparece nada ! mesmo se for da org ou nao .
Acho que seria essa define
ja coloquei na Public OnPlayerStateChange , nao conseguir , daн coloquei tambem na public OnPLayerEnterVehicle , mas nada de definir o veiculo ... olha como definir .
me ajudem galera .. rs , nao sei o porque nao estar definindo ...
Acho que seria essa define
pawn Код:
#define VDaOrg(%0,%1,%2) (GetPlayerVehicleID(playerid) == %0[0] || GetPlayerVehicleID(playerid) == %0[1])
pawn Код:
if(VDaOrg(VPMilitar,0,24) && ProgressaoInfo[playerid][Org] != 1) return RemovePlayerFromVehicle(playerid), SendClientMessage(playerid, C_Branco, "Vocк nгo й da Policia Militar");
if(VDaOrg(VPCivil, 0, 24) && ProgressaoInfo[playerid][Org] != 2) return RemovePlayerFromVehicle(playerid), SendClientMessage(playerid, C_Branco, "Vocк nгo й da Policia Civil");
if(GetVehicleModel(vehicleid) == 420 && ProgressaoInfo[playerid][Emprego] != 5) return RemovePlayerFromVehicle(playerid),SendClientMessage(playerid,-1,"Carro Reservado a Taxistas");
if(VDaOrg(VPFederal, 0, 24) && ProgressaoInfo[playerid][Org] != 3) return RemovePlayerFromVehicle(playerid), SendClientMessage(playerid, C_Branco, "Vocк nгo й da Policia Federal");
if(VDaOrg(VBope, 0, 24) && ProgressaoInfo[playerid][Org] != 4) return RemovePlayerFromVehicle(playerid), SendClientMessage(playerid, C_Branco, "Vocк nгo й do B.O.P.E");
if(VDaOrg(VExercito, 0, 24) && ProgressaoInfo[playerid][Org] != 5) return RemovePlayerFromVehicle(playerid), SendClientMessage(playerid, C_Branco, "Vocк nгo й do Exercito");
if(VDaOrg(VSamu, 0, 24) && ProgressaoInfo[playerid][Org] != 6) return RemovePlayerFromVehicle(playerid), SendClientMessage(playerid, C_Branco, "Vocк nгo й do SAMU");
if(VDaOrg(VMilicianos, 0, 24) && ProgressaoInfo[playerid][Org] != 7) return RemovePlayerFromVehicle(playerid), SendClientMessage(playerid, C_Branco, "Vocк nгo й um Miliciano");
if(VDaOrg(VTaliban, 0, 24) && ProgressaoInfo[playerid][Org] != 8) return RemovePlayerFromVehicle(playerid), SendClientMessage(playerid, C_Branco, "Vocк nгo й do Taliban ");
if(VDaOrg(VPComando, 0, 24) && ProgressaoInfo[playerid][Org] != 9) return RemovePlayerFromVehicle(playerid), SendClientMessage(playerid, C_Branco, "Vocк nгo й do Primeiro Comando");
if(VDaOrg(VGroove, 0, 24) && ProgressaoInfo[playerid][Org] != 10) return RemovePlayerFromVehicle(playerid), SendClientMessage(playerid, C_Branco, "Vocк nгo й da Groove Street");
if(VDaOrg(VBallas, 0, 24) && ProgressaoInfo[playerid][Org] != 11) return RemovePlayerFromVehicle(playerid), SendClientMessage(playerid, C_Branco, "Vocк nгo й dos Yard Ballas ");
if(VDaOrg(VCVermelho, 0, 24) && ProgressaoInfo[playerid][Org] != 12) return RemovePlayerFromVehicle(playerid), SendClientMessage(playerid, C_Branco, "Vocк nгo й do Comando Vermelho ");
if(VDaOrg(VYakusa, 0, 24) && ProgressaoInfo[playerid][Org] != 13) return RemovePlayerFromVehicle(playerid), SendClientMessage(playerid, C_Branco, "Vocк nгo й da Yakuza");
if(VDaOrg(VAlqaeda, 0, 24) && ProgressaoInfo[playerid][Org] != 14) return RemovePlayerFromVehicle(playerid), SendClientMessage(playerid, C_Branco, "Vocк nгo й da Al'Qaeda");
if(VDaOrg(VHitman, 0, 24) && ProgressaoInfo[playerid][Org] != 15) return RemovePlayerFromVehicle(playerid), SendClientMessage(playerid, C_Branco, "Vocк nгo й um Assassino ");
if(VDaOrg(VADA, 0, 24) && ProgressaoInfo[playerid][Org] != 16) return RemovePlayerFromVehicle(playerid), SendClientMessage(playerid, C_Branco, "Vocк nгo й do A.D.A");
if(VDaOrg(VMCN, 0, 24) && ProgressaoInfo[playerid][Org] != 17) return RemovePlayerFromVehicle(playerid), SendClientMessage(playerid, C_Branco, "Vocк nгo й da Mafia Cosa Nostra");
if(VDaOrg(VKrasnaya, 0, 24) && ProgressaoInfo[playerid][Org] != 18) return RemovePlayerFromVehicle(playerid), SendClientMessage(playerid, C_Branco, "Vocк nгo й do Krasnaya");
if(VDaOrg(VMayans, 0, 24) && ProgressaoInfo[playerid][Org] != 19) return RemovePlayerFromVehicle(playerid), SendClientMessage(playerid, C_Branco, "Vocк nгo й da Mayans");
if(VDaOrg(VSOA, 0, 24) && ProgressaoInfo[playerid][Org] != 20) return RemovePlayerFromVehicle(playerid), SendClientMessage(playerid, C_Branco, "Vocк nгo й do Sons Of Anarchy");
if(VDaOrg(VMST, 0, 24) && ProgressaoInfo[playerid][Org] != 21) return RemovePlayerFromVehicle(playerid), SendClientMessage(playerid, C_Branco, "Vocк nгo й do Movimento Sem Terra");
if(VDaOrg(VP2, 0, 24) && ProgressaoInfo[playerid][Org] != 22) return RemovePlayerFromVehicle(playerid), SendClientMessage(playerid, C_Branco, "Vocк nгo й do P2");
if(VDaOrg(VTComando, 0, 24) && ProgressaoInfo[playerid][Org] != 23) return RemovePlayerFromVehicle(playerid), SendClientMessage(playerid, C_Branco, "Vocк nгo й do Terceiro Comando");
if(VDaOrg(VDetran, 0, 24) && ProgressaoInfo[playerid][Org] != 24) return RemovePlayerFromVehicle(playerid), SendClientMessage(playerid, C_Branco, "Vocк nгo й do Detran");
if(VDaOrg(VGoverno, 0, 24) && ProgressaoInfo[playerid][Org] != 25) return RemovePlayerFromVehicle(playerid), SendClientMessage(playerid, C_Branco, "Vocк nгo й do Governo");
if(VDaOrg(VTGlobo, 0, 24) && ProgressaoInfo[playerid][Org] != 26) return RemovePlayerFromVehicle(playerid), SendClientMessage(playerid, C_Branco, "Vocк nгo й da Tv Globo");
return 1;