VD[24], vllave1[24], vllave2[24], vllave3[24], |
if(newkeys & KEY_ACTION) { if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { new vehicleid = GetPlayerVehicleID(playerid); new engine, vlights, alarm, doors, bonnet, boot, objective; GetVehicleParamsEx(vehicleid, engine, vlights, alarm, doors, bonnet, boot, objective); if(engine) { //if(VirtualTimers[playerid][24] != -1) return 1; new str[145]; format(str,sizeof(str),"{CCCCCC}%s {FFFFFF} gira la llave de su vehнculo y apaga el motor.", PlayerName(playerid)); SendPlayersMessage(10.0, playerid, 0xF000D8FF, str); SCM(playerid, -1, "Al apagar tu vehнculo, este quedarб aparcado aquн, hasta que vuelva a arrancar el motor."); SCM(playerid, -1, "Si estб mal aparcado la grъa podrнa llevarselo."); VirtualTimers[playerid][24] = SetTimerEx("SetVehicleParamsPlayer", 500, false, "idddddddd", playerid, vehicleid, 0, vlights, alarm, doors, bonnet, boot, objective); } else { // if(VirtualTimers[playerid][24] != -1) return 1; new str[145]; format(str,sizeof(str)," {CCCCCC}%s {FFFFFF} gira la llave de su vehнculo...", PlayerName(playerid)); SendPlayersMessage(10.0, playerid, 0xF000D8FF, str); VirtualTimers[playerid][24] = SetTimerEx("SetVehicleParamsPlayer", 1000, false, "idddddddd", playerid, vehicleid, 1, vlights, alarm, doors, bonnet, boot, objective); } } else { InfoMSG(playerid, 3000, "No tienes las llaves de este vehнculo."); } } } |
if ( DataCars[vehicleid][PlayersData[playerid][Llave]])