08.10.2011, 22:55
Quote:
Код:
if(vId==VipCar[1]) { if(vehEngine[vId] == 0) { GetPlayerName(playerid, nome, sizeof nome); if(strfind(nome, "Dogao_Fernandes", true) == 0) { TogglePlayerControllable(playerid, 1); vehEngine[vId] = 1; format(string, 256, "%s, ligou o veнculo.",sendername); ProxDetector(20.0,playerid,string,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } else { TogglePlayerControllable(playerid, 0); SendClientMessage(playerid, COLOR_GRAD1,"Vocк nгo tem as chaves desse veiculo. "); return 1; } } else { if(strfind(nome, "Dogao_Fernandes", true) == 0) { TogglePlayerControllable(playerid, 0); vehEngine[vId] = 0; format(string, 256, "%s, desligou o veнculo.",sendername); ProxDetector(20.0,playerid,string,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return 1; } else { SendClientMessage(playerid, COLOR_GRAD1,"Vocк nгo tem as chaves, para desligar esse veiculo."); TogglePlayerControllable(playerid, 1); return 1; } } } |