[Ajuda] Olha aqui rapidim pf? :D
#1

Galera tipo , tava tentando fazer um carro reservado para uma profissгo no meu gm rpg, que ele iria verificar se o player tinha aquela profissao e se nгo tivesse ia expulsa-lo do carro e enviaria uma msg , mais nгo ta funcionando, ele nao ta verificando nem expulsando ;s vo passar o codigo:

PHP код:
Coloquei na - public OnPlayerStateChange(playeridnewstateoldstate)
//=======================================================
new aname[MAX_PLAYER_NAME];
GetPlayerName(playeridanameMAX_PLAYER_NAME);
format(filesizeof(file), PASTA_CONTASaname);
new 
modelo GetVehicleModel(GetPlayerVehicleID(playerid));
new 
vid GetPlayerVehicleID(playerid);
if(
vid == DPLS[0] || vid == DPLS[1] || vid == DPLS[2] || vid == DPLS[3] || vid == DPLS[4] || vid == DPLS[5] || vid == DPLS[6] || vid == DPLS[7] || vid == DPLS[8] || vid == DPLS[9] || vid == DPLS[10] || vid == DPLS[11] || vid == DPLS[12] || vid == DPLS[13] || vid == DPLS[14] || vid == DPLS[15] || vid == DPLS[16] || vid == DPLS[17] || vid == DPLS[18] || vid == DPLS[19] || vid == DPLS[20] || vid == DPLS[21] || vid == DPLS[22] || vid == DPLS[23] || vid == DPLS[24] || vid == DPLS[25] || vid == DPLS[26]
|| 
vid == DPLS[27] || vid == DPLS[28] || vid == DPLS[29] || vid == DPLS[30] || vid == DPLS[31] || vid == DPLS[32]){
if(
dini_Int(file"Profissao") == Policia_Militar || dini_Int(file"Profissao") == Policia_Civil || dini_Int(file"Profissao") == Policia_Federal || dini_Int(file"Profissao") == Delegado || dini_Int(file"Profissao") == Swat || dini_Int(file"Profissao") == FBI || dini_Int(file"Profissao") == Interpol || dini_Int(file"aAdmin") == 1){
} else {
SendClientMessage(playerid,0x972FFFAA,"| ERRO | Vocк nгo й um Policial.");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid1);
}
}
//====================================================================================
if(vid == hospcars[0] || vid == hospcars[1] || vid == hospcars[2] || vid == hospcars[3] || vid == hospcars[4] || vid == hospcars[5]){
if(
dini_Int(file"Profissao") == Paramedico || dini_Int(file"aAdmin ") == || IsPlayerAdmin(playerid)){
} else {
SendClientMessage(playerid0x972FFFAA"{FFFF00}[{FF0000} ERRO{FFFF00} ]{FFFFFF}: Vocк nгo й um Paramedico.");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid1);
}

Esses sгo de policial e do hospital ;s , ajuda ai galera pf ;s
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)